Compile time error

every time I try to run the code it comes with an error in main class

Please share your code and the error recieved

Exception in thread “main” java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:862) at java.util.Scanner.next(Scanner.java:1485) at java.util.Scanner.nextInt(Scanner.java:2117) at java.util.Scanner.nextInt(Scanner.java:2076) at test.main(test.java:8)

here’s my code which i copied from my eclipse

NoSuchElementException error .it is thrown by methods to indicate that the element being requested does not exist.so check your loops and inputs if u are requesting a non existent element
Give input while compiling and check for loops running more than required

thank you but i figured that out :sweat_smile:

Where do you need help?
You have to show me your code if u need help there
Go to ide.codingblocks.com paste your code and do file->save and share the url