606CHAPTER 9Multidimensional Arrays and the ArrayList Class
TABLE 9.3Structure of an n-Dimensional Array
DimensionArray Element
first
arrayName[i
1
] is an (n 1)-dimensional array
secondarrayName[i
1
][i
2
] is an (n 2)-dimensional array
k
th
arrayName[i
1
][i
2
][i
3
][..][i
k
] is an (n k) multi-
dimensional array
(n - 2)
th
arrayName[i
1
][i
2
][i
3
][..][i
n2
] is a two-dimensional array
(n - 1)
th
arrayName[i
1
][i
2
][i
3
][..][i
n1
] is a single-dimensional
array
n
th
arrayName[i
1
][i
2
][i
3
][..][i
n1
][i
n
] is an array element
9.6Other Multidimensional Arrays
To this point, we have discussed arrays with one and two dimensions.
Sometimes,however,we might need an array with more ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.