Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multi-dimensional Array

 
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: 4467
3
Java Python 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: 9066
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: 9066
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic