Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multi-dimensional Array  RSS feed

 
Dina Jack
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All!
I've been trying to figure out multi-dimensional arrays and am having no luck. I understand arrays but I am totally lost with the multi's when they are more than 2 dimensional. None of my java books (about 3-4) have a very clear explanation.
Does anyone know where I could find a great explanation? This seems to be important on the SCJP exam but in my coding experience, I've only had to work with two dimensional arrays at most.
Thanks!
-Dina
 
Randall Twede
Ranch Hand
Posts: 4690
8
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cant help with that, but just wanted to say i kind of doubt you will see anything on SCJP with more than 2-dimensional.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think of them as arrays of arrays.
int[][][]
would be an int array which contains some two dimentional int arrays.
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, Dina J, welcome to JavaRanch!

Please adjust your display name to meet the JavaRanch Naming Policy.
You can change it here.

Thanks!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!