/***
* ━━━━ 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);
}
}
隐藏文章
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 这两天,一个来自中国深圳的四胞胎家庭突然刷爆了整个网络空间,并激起了围观者们极为强烈的争议。 然而,引起人们关注的...