Write a class MatrixSums that reads two integers rows and cols, then rows × cols integers into a two-dimensional array, and prints the sum of each row and of each column:
Row 0: 6
Row 1: 15
Col 0: 5
Col 1: 7
Col 2: 9
The rows are printed first, in order, then the columns.