User input data cannot be read | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

User input data cannot be read

I would like that the code can read the input data and process so the if condition may or may not be fullfilled. what am i doing wrong? https://code.sololearn.com/ciaxvoF4bdix/?ref=app

19th Apr 2018, 4:06 PM
Sven Boillat
Sven Boillat - avatar
4 Answers
+ 15
In line number 7 name = myVar.nextline(); L should be capital in nextLine() https://www.sololearn.com/learn/Java/2220/?ref=app
19th Apr 2018, 5:39 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 1
sorry for this very unsophisticated question but i am completely new to coding ;)
19th Apr 2018, 4:14 PM
Sven Boillat
Sven Boillat - avatar
+ 1
thanks a lot. it did work, but the if statement does not work: it does not matter what i type i get the else value.
20th Apr 2018, 8:40 AM
Sven Boillat
Sven Boillat - avatar
+ 1
do you have a hint on that?
20th Apr 2018, 8:40 AM
Sven Boillat
Sven Boillat - avatar