What is wrong with this program? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
21st Apr 2021, 6:45 AM
Jawahirullah
Jawahirullah - avatar
2 Answers
+ 2
Please provide some information about what you are trying to achieve in the code. There is no hint for what to enter as input and what should be the expected output.
21st Apr 2021, 6:48 AM
Genuine Stalwart
Genuine Stalwart - avatar
0
Hey M. Jawahirullah nextln() method is not there in Scanner class. use next() or nextLine() methods for reading String
21st Apr 2021, 7:02 AM
❤☆Nani☆❤
❤☆Nani☆❤ - avatar