The program is showing error

Exception in thread “main” java.lang.Error: Unresolved compilation problem:
The method newInt() is undefined for the type Scanner

at reverse.main(reverse.java:11)

the program did not execuete instead it is showing this type of error.

Hey @Jasmeet-Singh-1355418214639765,
You are probably writting newInt() instead of nextInt() in line 11 of your program . It is nextInt() to take input of a integer variable

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.