+ 2
Help a java noobster with his scanner
Why does this code never outputs one ? https://code.sololearn.com/cpU2vKnY7sBg/?ref=app
3 Antworten
+ 10
Java noobster here too 😄👍🏻 You should use the method equals() while comparing strings 🤓
a.equals("abc") works :)
+ 2
You can also use
a.contentEquals("abc")