I mean something like
for(int i = 0;i < 2;i++)
for(int j = 0;j < 3;j++)
for(int k = 0;k < 4;k++)
System.out.println(x[i][j][k])
Personally I find this simpler than the...
Type: Posts; User: dabdi
I mean something like
for(int i = 0;i < 2;i++)
for(int j = 0;j < 3;j++)
for(int k = 0;k < 4;k++)
System.out.println(x[i][j][k])
Personally I find this simpler than the...
The error message says it all. i should be a reference to a reference i.e with [][] instead of [], and j should have one []
for(int [][] i : x)
...
for(int[] j : i)
But I would recommend...