Hello i have JAVA PROGRAMMING assignment could you help me
We write a generic matrix multiplication class (namedGenericMatrix). The class must be able to multiply any matrixcontaining the elements of the number type. The call will be madeas if
Double[][] M = new Double[3][5];
Double[][] N = new Double[5][7];
Double[][] A = GenericMatrix.multiply(M,N);
Integer[][] K = new Integer[2][3];
Integer[][] L = new Integer[3][5];
Double[][] R = GenericMatrix.multiply(K,L);
Notice that the multiply method always returns Double. (Hint:java.lang.Number).
Expert Answer
An answer will be send to you shortly. . . . .