An array of N dimensions is indeed an array of (N-1) -dimensional arrays. Therefore, when we iterate over an array of N dimensions, we iterate over all its constituent (N-1) -dimensional arrays, as indicated.
For example, consider a two-dimensional array:
int[][] array = {{1,2,3}, {4,5,6}};
This is really an array of one-dimensional arrays: {1,2,3} and {4,5,6} .
source share