
HINT for the last one in “Strings and Characters”
Character is a class in the Javadoc.
Character.isDigit(c) is a method that will return true if c is a digit, false if it is not.
So for our program, we can use a loop to get:
char c = str.charAt(i);
if Character.isDigit(c)
….
else
…
