
9.3 Aggregate Two-Dimensional Array Operations 583
Figure 9.6
Output of Example 9.3
21 System.out.print( familyCellBills[i][j] + "\t" );
22 }
23 }
24 System.out.println();
25 }
26 }
EXAMPLE 9.3 Two-Dimensional Array Processing
Data for family cell bills
row 0: 45.24 54.67 32.55 25.61
row 1: 65.29 49.75 32.08 26.11
row 2: 75.24 54.53 34.55 28.16
9.3.2 Processing a Given Row of a Two-Dimensional Array
What if we want to process just one row of a two-dimensional array? For
instance, we could be interested in calculating the sum of the cell bills for
the whole family for a particular month, or identifying who had the highest
cell bill in a particular month.
The general ...