+ 2

Giving scanner error???? Help

Giving scanner error in Sololearn online editor. Don't know why? https://code.sololearn.com/cn1k34qvNx28/?ref=app

29th Aug 2019, 8:00 AM
Sunil Kumar Mallah
Sunil Kumar Mallah - avatar
5 Answers
+ 1
Well it doesn't make an error to me. I gave as input six integers and it printed the matrixes
29th Aug 2019, 8:14 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
+ 1
The scanner in the main is giving error. I commented that previously. Please try to run the code now.
29th Aug 2019, 8:19 AM
Sunil Kumar Mallah
Sunil Kumar Mallah - avatar
+ 1
~ swim ~ According to your solution all he has to do is just create one Scanner object out of the methods and define it as static
29th Aug 2019, 8:36 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
0
Why not?
29th Aug 2019, 8:50 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar
0
I tried this and it worked
29th Aug 2019, 8:51 AM
Eliya Ben Baruch
Eliya Ben Baruch - avatar