Characters and Strings
Characters and Strings
char myLetter;
myLetter = ‘ ’;
myLetter = ‘w’;
String myWord;
myWord = “ ”;
myWord = “word”;
The variable name will be set to equal Sumatra, and the variable length
will be set to be equal to the number of characters in the string Sumatra
which is 7