+ 2
What does this error message mean ?
"Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Unknown Source) at java.util.Scanner.next(Unknown Source) at Program.main(Program.java:8)"
4 Respuestas
+ 3
Thanks all
Venkatesh Pitta you were right
+ 2
Maybe you didn't import your Scanner class so try importing it with
import java.util.Scanner
or according to @David Stark
import java.util.*
+ 1
hard to say for sure without looking at the source. so here is my stab at it. the compiler is trying to tell you there is no method called next defined in the Scanner class.
0
maby try java.util.*