
580 CHAPTER 9 Multidimensional Arrays and the ArrayList Class
9.3 Aggregate Two-Dimensional Array Operations
As with single-dimensional arrays, Java does not support aggregate opera-
tions on multidimensional arrays. For example, you cannot print the con-
tents of an array using only the array name. Instead, you need to process
each element individually.
9.3.1 Processing All the Elements of a Two-Dimensional Array
To process all the elements of a two-dimensional array, we use nested for
loops that access and process each element individually. Often, the most
logical way to process all elements is in row order, and within each row, in
column order. W