equals() Returns TRUE if s matches the current String; otherwise FALSE. Syntax Boolean equals(String s) s is the string to compare. Usage If one of the Strings is null, this method returns FALSE. Related conceptsequalsIgnoreCase()