+ 1

Error: Cannot find symbol (Java)

Here is what the error says: var = in.nextInt Symbol: variable nextInt Location: variable in of type scanner I made a program using a scanner, this is the third thing that the scanner has to scan for. Please help! I’m not sure how to fix this.

7th May 2018, 3:16 PM
Maddie
Maddie  - avatar
1 Antwort
+ 1
You didn't assign a name to your var. And please use the explicit datatype like: int nextInt = in.nextInt;
7th May 2018, 4:30 PM
***
*** - avatar