New course! Every coder should learn Generative AI!
Try a free lesson0
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
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?