for (int[] val : array1) { System.out.println(Arrays.toString(val)); }
for(int[] arr2: array1) { for(int val: arr2) System.out.print(val); }