Hey, This might help... your if statments are the problem. You seem to be checking for a false isUpperCase when what you want is a true.


if (Character.isUpperCase(ch)) {
legal =...