for(int[] row : a){ for(int each : row){ System.out.println(each + "\t"); } System.out.println(); } for (int[] row : a) { for (int each : row) { System.out.print(each + "\t"); } System.out.println(); }
8
24
58
31
72
83
28
44
6
96
20
40
11
38
50
79
45
74
3
46
86
88
48
97
12
8 24 58 31 72
83 28 44 6 96
20 40 11 38 50
79 45 74 3 46
86 88 48 97 12