public static void main(String[] args) {
int[][] arr={{1},{2}};
int[][] arr1=new int[arr.length][arr[0].length];
System.arraycopy(arr,0,arr1,0,arr.length);
for (int[] ints : arr1) {
for (int anInt : ints) {
System.out.println(anInt);
}
}
}
11-04
6099
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)