6.4k views
2 votes
How do I compare strings in Java?

User Jhoelz
by
6.9k points

1 Answer

4 votes

Answer:

the mos common way is through an if method:

if ("this" == "that")
return true;

else

return false;

Step-by-step explanation:

User Rugmangathan
by
8.2k points