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.
The relevant JavaDoc will tell you that
length()is the method you're looking for. Soword.length();would return the size ofword, which is what you want.