22nd Oct 2022, 8:16 AM
五条悟 ♡
五条悟 ♡ - avatar
4 odpowiedzi
+ 1
It's due to sololearn, how it handles input. You need to give all required input at once on pop up by line by line or space separated according to code. Give input to your code like Ex: string <press enter> 1 <press submit> edit: Ryomen Sukuna Run this and see how sololearn input works.. this explains how solo learn input console works... https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
23rd Oct 2022, 1:42 PM
Jayakrishna 🇮🇳
+ 2
What error you are facing?
22nd Oct 2022, 8:22 AM
Jayakrishna 🇮🇳
+ 2
Jayakrishna🇮🇳 Enter a no. Enter your choice: Exception in thread "main" java.util.NoSuchElementException at java.base/ java.util.Scanner.throwFor (Scanner.java:937) at java.base/ java.util.Scanner.next(Scanner.java:1594) java.util.Scanner.nextInt(Scanner.java:2258) at java.base/ at java.base/ java.util.Scanner.nextInt(Scanner.java:2212) at Program.main(Program.java:11) It is showing this 😑
23rd Oct 2022, 7:27 AM
五条悟 ♡
五条悟 ♡ - avatar
+ 2
Thank you sooo mucccchhhh Jayakrishna🇮🇳 sir 🥰
23rd Oct 2022, 1:52 PM
五条悟 ♡
五条悟 ♡ - avatar