Write a class MatrixOperations in which you implement the methods:
public static double[][] matrixAdd(double m1[][], double m2[][]) {…}
that returns a matrix which is the sum of matrix m1 and matrix m2. m1 and m2 have the same dimensions.
public static double matrixDiagSum(double m1[][]) {…}
that returns the sum of the elements on the first diagonal of matrix m1. Consider the matrix m1 to be square.