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()
string1 == string2
string1, string2 - a string variable
The nth char of the string. Same as charAt().
true: if string1 equals string2