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 = false;
System.out.println("Legal, but uses poor style.");
}
if (Character.isDigit(ch)) {
legal = false;
System.out.println("Illegal, The first character can't be a number.");
}
for (int i = 1; i < variableName.length() && legal; i++) {
ch = variableName.charAt(i);
if (Character.isWhitespace(ch)) {
legal = false;
}
}
if (legal) {
System.out.println("Good.");
}
} while (!variableName.equals("q"));
System.out.println("End Program.");