Write the method:
public int sumRow(int[][] matrix, int row)
that sums row row in the 2D array called matrix.
row
Given:
In the internal loop, modify the condition to:
for(int j = 0; j < matrix[i].length; j++)
and then switch i and j in the sum
i
j