Java's String if statement is being wonky | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java's String if statement is being wonky

Can someone help me out? The if statement that should be working as planned isnt working with the name I input https://code.sololearn.com/cexp64u7i1Qf/?ref=app

11th Oct 2018, 2:52 PM
Evan Martine
1 Answer
0
I was able to find the solution. I used a string operation called equals. Why does == not work in this scenario? Is it a data type issue?
11th Oct 2018, 3:07 PM
Evan Martine