I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.
==
.equals()
Is == bad? When should it and should it not be used? What's the difference?
2.6k questions
24 answers
34 comments
16.6k users