Java String comparison FAQ: How to compare Java Strings | Java String compare tutorial | alvinalexan
How to test if two Java Strings are equal - a quick tutorial showing the correct (and incorrect) ways to compare Java Strings for equality. ... Use the compareTo method, if you are interested in the lexicographic order of the strings - which is "less", wh...