equals
Also written: equalsIgnoreCase, ==
The correct way to check whether two strings hold the same text. `==` instead checks whether two names point to the very same object, so it can be false even for matching text.
Also written: equalsIgnoreCase, ==
The correct way to check whether two strings hold the same text. `==` instead checks whether two names point to the very same object, so it can be false even for matching text.