Strings

Strings in Java are not character arrays, unlike in C and C++. There are two string classes:

Since strings are no arrays, one cannot access characters in a string by means of the array syntax, like str[i]. Note that characters are 16 bit Unicode. Matching upper- and lowercase is complicated.