tablica Java 2d dla każdego
public static void main(String[] args) {
int[][] array = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
for(int[] count : array) {
for(int elem : count) {
System.out.print(elem + " "); //output: 1 2 3 4 5 6 7 8 9
}
}
}
Undefined