(Sum the major diagonal in a matrix) Write a method that sums all the numbers in the major diagonal in an n × n matrix of double values using the following header:
public static double sumMajorDiagonal(double[][] m)
Write a test program that reads a 4-by-4 matrix and displays the sum of all its elements on the major diagonal. Here is a sample run:

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.