+ 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
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
+ 1
sorry for this very unsophisticated question but i am completely new to coding ;)
+ 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.
+ 1
do you have a hint on that?