0
Where I did wrong
Can any one give a hint https://code.sololearn.com/c5Ie8Xm2ggJ6/?ref=app
1 Réponse
+ 1
Variables m1 and m2 are visible only in main method, so, you should send them as arguments in methods used for input and printing. Input functions should return a matrix, but before returning don't forget to close scanner. Print methods are fine, you just need to pass your matrix as an argument. Hope it helps!