Java 数组嵌套
1 public static void main(String[] args) 2 { 3 int[] arr = new int[] {8,6,3,1,9,5,4,7}; 4 int[] index = new int[] {3,2,7,0,4,5,1,6,3,7,3}; 5 String tel = ""; 6 for(int i =0; i<index.length;i++) 7 { 8 tel+=arr[index[i]]; 9 } 10 System.out.println("Biubiu+"+tel); 11 } 12
本文来自博客园,作者:Bytezero!,转载请注明原文链接:https://www.cnblogs.com/Bytezero/p/15214061.html