本帖最后由 我是你的Object 于 2018-8-9 15:34 编辑
/*姓名:王子,
目的:来到黑马学习java,
以后都是程序猿了,
来自广东,多多指教
喜欢旅游,骑行.*/
[Java] 纯文本查看 复制代码 Object[] arr = new Object[] {1,".","m","@","o","q",8,0,3,7,"c",4};
int[] index = new int[] {8,9,0,6,11,6,11,7,6,3,5,5,1,10,4,2};
String context = "";
for (int i : index) {
context += arr;
}
System.out.println(context); |