New course! Every coder should learn Generative AI!
Try a free lesson+ 1
how does we compare string values?
1 Answer
+ 6
"The == operator checks to see if the two strings are exactly the same object. The .equals() method will check if the two strings have the same value."
https://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java