SyntaxFix
Write A Post
Hire A Developer
Questions
This is what Java internal code uses (on other compare methods):
compare
public static boolean compare(String str1, String str2) { return (str1 == null ? str2 == null : str1.equals(str2)); }