==

[StringObject Operator]

Description

Compares two strings for equality. The comparison is case-sensitive, meaning the String "hello" is not equal to the String "HELLO". Functionally the same as string.equals()

Syntax

string1 == string2

Parameters

string1, string2 - a string variable

Returns

The nth char of the string. Same as charAt(). true: if string1 equals string2

false: otherwise

See also