This is a simple question but I'm not very good at research.
I'm trying to find out the number of characters in a String
and put it in an int
variable. For example:
String word = "Hippo";
int numOfCharacters = (the code that tells me how many characters in the word);
And then use that number later.