how does we compare string values? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

how does we compare string values?

11th Jul 2017, 5:05 AM
Natan Mesay
Natan Mesay - avatar
1 Resposta
+ 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
11th Jul 2017, 5:07 AM
Hatsy Rei
Hatsy Rei - avatar