1 public class Copy1 { 2 3 public static void main(String[] args) { 4 array1(); //如果不初始化元素,默认为0 5 int [][] a = new int [][]{{1,3,2,5,7},{5,9,3,4,2}}; 6 int [][] b = new int [a[1].length][a.length]; 7 for(int i=0;i<b.length;i++){ //数组的转置 8 for(int j =