I'm pining for more love from the concept of arrays of arrays. But I can't hug 'em like I want to.
I'm
SCJP 1.3 and I'm studying for the 1.4 Upgrade. I bought Kathy and Bert's most excellent guide and Chapter 1 enlightened me to just how much I don't know about arrays of arrays, especially complex multidimensional arrays pass the simplest two dimensional array (I mean come on, "On The Job" who uses arrays of arrays as complex as four deep?)
While I understand the "rules" of arrays of arrays and assignments, I'm having trouble visualizing the dimensions and values of multidimensional arrays. I got the basics down:
Basic two-dimensional example:
I'm translating this as an "array of seven null int arrays" So...
This compiles and the output is as expected:
(In fact any legal call to
iArr would be
0 but that's given.)
For more fun, and about the point I start getting lost:
I see this as an "array of seven int arrays, each seven in length, each index initialized to zero (default)" Is this correct?
For more complex fun:
Whew. Okay, I'm lost. I need help visualizing this multi dimensional array. (See Kathy and Bert's book for an example almost identical in nature. Which KUDOS are in order. What a fantastic book! I'm learning a lot more this time around studying for the SCJP than the first time!)
[ May 10, 2003: Message edited by: Timothy Stone ]