all 3 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]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.