i ran the code in ide.codingblocks.com which shows the below error and even this ide shows the same.
but my code runs fine in eclipse ide.
kindly resolve because of this my progess is hindered
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 Main.takeInput(Main.java:8)
at Main.main(Main.java:15)