0

Problem with java scanner

why there is coming java.util.nosuchelementexception? then I use the scanner for 2 inputs?

17th Nov 2017, 9:39 AM
jack
jack - avatar
10 Answers
+ 6
https://code.sololearn.com/c9EL9rmpj429/?ref=app Enclose the methods in a class , Scanner shall be initialized once , and methods of a class should be public ... That's What My Little Knowledge Says
17th Nov 2017, 11:00 AM
Aayush Bhansali
Aayush Bhansali - avatar
+ 1
this is the code there the problem is
17th Nov 2017, 10:02 AM
jack
jack - avatar
+ 1
hey thanks, but I still did't get why I get the error before
17th Nov 2017, 12:09 PM
jack
jack - avatar
+ 1
?
17th Nov 2017, 4:47 PM
jack
jack - avatar
+ 1
what you meet with this number?
17th Nov 2017, 4:47 PM
jack
jack - avatar
+ 1
it's to choose the language 1 for English 2 for german. than you input an number and you get the row like for 2: 2 4 6 8 10 12 14 16 18 20
18th Nov 2017, 12:47 AM
jack
jack - avatar