In my method addMatrix I return the array result. I then try to call it in my main method to print out, however it gives me an error saying it cannot find the variable. Since I returned it shouldnt I...
Type: Posts; User: ColeTrain
In my method addMatrix I return the array result. I then try to call it in my main method to print out, however it gives me an error saying it cannot find the variable. Since I returned it shouldnt I...
//matrix1
double[][] matrix1 = {{1, 2, 3},{4, 5, 6},{7, 8, 9}};
//matrix2
double[][] matrix2 = {{0, 2, 4},{1, 4.5, 2.2},{1.1, 4.3, 5.2}};
addMatrix(matrix1,...