equals()

Compares two Strings for equality. The comparison is case-sensitive, meaning the String "hello" is not equal to the String "HELLO". myString.equals(myString2)
myString: a variable of type String. myString2: a variable of type String. true: if string equals string2. false: otherwise.