public boolean equals (Object anObject)

Overriding: java.lang.Object

Compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object.

Parameters:
anObject    the reference object with which to compare.

Returns:  true if the given object represents a String equivalent to this string, false otherwise

See also:
compareTo(String), equalsIgnoreCase(String)