View Single Post
  #31   Spotlight this post!  
Unread 26-02-2015, 01:26
King Nerd III's Avatar
King Nerd III King Nerd III is offline
Chief Programmer/Head of Autonomous
AKA: Isaac
FRC #1410 (The Kraken)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Denver, CO
Posts: 116
King Nerd III is an unknown quantity at this point
Re: Quotes from the Chief Engineer and I

Quote:
Originally Posted by Spoam View Post
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.