I'm trying to find the sum of each row, and then print them out from largest to smallest : `enter code here`import java.util.Arrays;
`enter code here`import java.util.Scanner;
`enter code here`import java.util.Collections;

`enter code here`public class array_PA3{
`enter code here`public static void main(String[] args){
`enter code here`int[][] hoursArray = {   
   
`enter code here`{2,3,3,4,5,8,8,0},
`enter code here`{7,4,4,3,3,4,4,0},
`enter code here`{3,4,3,3,3,2,2,0},
`enter code here`{9,4,7,7,3,4,1,0},
`enter code here`{3,4,3,3,6,3,8,0},
`enter code here`{3,4,6,3,3,4,4,0},
`enter code here`{3,4,8,8,3,8,4,0},
`enter code here`{6,5,9,9,2,7,9,0}};

`enter code here`int maxRow = 0;
`enter code here`int indexRow = 0;
`enter code here`int [] totalRow = new int[8];

`enter code here`for (int row = 0; row <= 7; row++) {
`enter code here`for (int column = 0; column <= 7; column++){
`enter code here`totalRow[row] += hoursArray[row][column];
`enter code here`}      
`enter code here`System.out.println("The sum of row " + row + " is " + totalRow[row] + ".");     
`enter code here`} 
`enter code here`Arrays.sort(totalRow, Collections.reverseOrder());       
}   
}   