Quote:
Originally Posted by Spoam
Since I guess no one else has mentioned it, the only reason OP is "correct" is because in Java "2d" arrays neither row-major nor column-major. Java arrays aren't truly multidimensional (all data contiguously stored in rm or cm order) they're just arrays of arrays.
|
That's almost exactly how we were trying to explain it to the teacher. I've always visualized a 2d array as an array of arrays, and a so called 3d as an array of those arrays of arrays. And so forth and so on. I don't really like how my teacher draws them like:
[][][]
[][][]
[][][]
Because while it may be all nice and cool to look at it's not how I've always understood them to be.