Todo list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Todo list

Can anyone help me where is the problem??🙏 https://code.sololearn.com/c7Qcb8BufXDQ/?ref=app

28th Oct 2022, 1:17 PM
S Th
S Th - avatar
1 Answer
+ 3
Use single scanner object. No need multiple. and it won't work for same stream. Other works but use String name = input.nextLine(); // instead next(), pointer won't go next line. If the input in separate lines, use nextLine() method for strings..
28th Oct 2022, 1:41 PM
Jayakrishna 🇮🇳