equals()

Returns TRUE if s matches the current String; otherwise FALSE.

Syntax

Boolean equals(String s)
  1. s is the string to compare.

Usage

If one of the Strings is null, this method returns FALSE.