/***
* ━━━━ Code is far away from ━━━━━━
* () ()
* ( ) ( )
* ( ) ( )
* ┏┛┻━━━┛┻┓
* ┃ ━ ┃
* ┃ ┳┛ ┗┳ ┃
* ┃ ┻ ┃
* ┗━┓ ┏━┛
* ┃ ┃
* ┃ ┗━━━┓
* ┃ ┣┓
* ┃ ┏┛
* ┗┓┓┏━┳┓┏┛
* ┃┫┫ ┃┫┫
* ┗┻┛ ┗┻┛
* ━━━━ bug with the more protecting ━━━
* <p/>
* Created by PangHaHa12138 on 2017/6/22.
*/
public class test {
public static void main(String args[]){
String msg1 = "",msg2="",msg3="",msg4="";
String[] arr = new String[]{"過","忘","飄","愛","漫","土","但","長","蓀","泥","愿","香",
"夏","聞", "葉","沉","人","未","自","花","盛","草","園","不","夕","是","今"};
int[] index1 = new int[]{20,19,3,12,15,18,14};
int[] index2 = new int[]{21,13,5,23,22,8,9};
int[] index3 = new int[]{7,11,10,6,16,12,1};
int[] index4 = new int[]{24,2,3,27,25,26,17};
for (int i : index1) {
msg1 = arr[i];
}
for (int i : index2) {
msg2 = arr[i];
}
for (int i : index3) {
msg3 = arr[i];
}
for (int i : index4) {
msg4 = arr[i];
}
System.out.println("這首詩是"+msg1+msg2+msg3+msg4);
}
}
隱藏文章
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。
相關(guān)閱讀更多精彩內(nèi)容
- 這兩天,一個(gè)來自中國深圳的四胞胎家庭突然刷爆了整個(gè)網(wǎng)絡(luò)空間,并激起了圍觀者們極為強(qiáng)烈的爭議。 然而,引起人們關(guān)注的...
- 上文說到怎樣上傳項(xiàng)目到GitHub,由于必要的操作導(dǎo)致MAC上一些本該隱藏的文件夾顯示出來,看著特別不舒服,...
- 說到姓氏,這可是中國人家族觀念的寄托,同宗同祖總有種說不出的親切感。那么關(guān)于同姓同宗的概念你知多少? 住家在周圍,...