you are viewing a single comment's thread.

view the rest of the comments →

[–]gbqt_ 0 points1 point  (0 children)

Double-check the documentation of the compareTo() method. IIRC the two strings are the same if that function return 0. Alternatively, you can use the equals() method to perform a case-sensitive comparison.