yeah but my homework specifically said that the data should be stored in the reference variable called mat and the size of the method should be the value returned
uhh you said to return the array...
Type: Posts; User: gonfreecks
yeah but my homework specifically said that the data should be stored in the reference variable called mat and the size of the method should be the value returned
uhh you said to return the array...
i already tried that code
public static void printMat(int [][] mat, int size){
for ( int i = 0; i < mat.length; i++ ){
for ( int j = 0; j < mat[i].length; j++ ){
...
public static int loadMat(int [][] mat) throws Exception{
int size, row, col = 0, num;
Scanner input = new Scanner(System.in);
System.out.print("Enter the size of the...