![Please help with this error! Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:862) at java.util.Scanner.next( Scanner.java:1371) at Codechef.main(Main.java:13) - help - CodeChef Discuss Please help with this error! Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:862) at java.util.Scanner.next( Scanner.java:1371) at Codechef.main(Main.java:13) - help - CodeChef Discuss](https://s3.amazonaws.com/discourseproduction/original/3X/6/3/633cf7df27b0731b5b5d2ce5c4231174edbe8217.png)
Please help with this error! Exception in thread "main" java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:862) at java.util.Scanner.next( Scanner.java:1371) at Codechef.main(Main.java:13) - help - CodeChef Discuss
![So I tried to make a workaround for the Java scanner class complaining about an iteration error and this is what I got before giving up : r/badcode So I tried to make a workaround for the Java scanner class complaining about an iteration error and this is what I got before giving up : r/badcode](https://i.redd.it/2nvjt1wt20961.png)
So I tried to make a workaround for the Java scanner class complaining about an iteration error and this is what I got before giving up : r/badcode
![java - Encountering some bugs regarding the Scanner and an unknown source in my code. No idea how to fix it - Stack Overflow java - Encountering some bugs regarding the Scanner and an unknown source in my code. No idea how to fix it - Stack Overflow](https://i.stack.imgur.com/tvMsM.png)