Campbell Ritchie wrote:there is no such thing as a two‑dimensional array in Java®.
Oh I see, I completely misunderstood you, I thought you missed the bracket next to type. Yes you are correct. Actually from implementation perspective (couldn't find a specific
word for this) It is only one dimensional array. So It is an array of array .... sort of things.
For an example:
I think most of the people (hope so) call them one dimensional Or two dimensional and so on, just for the sake of understanding.
Like
It's easy to understand above declaration by calling It
three dimensional array of short rather than calling It
array of array of array of short since JVMS 9 also used these words like three dimensional array etc.
JVMS 9 3.9 Arrays wrote:For example, the three-dimensional array:
int[][][] create3DArray() {
int grid[][][];
grid = new int[10][5][];
return grid;
}
And thank you for pointing out that