private String switcher(char c) { String s = "" + c; try { Integer.parseInt(s); return "Zahl"; } catch (NumberFormatException nfe) { if (s.compareTo(s.toUppercase()) == 0) { return "Großbuchstabe"; } else { return "Kleinbuchstabe"; } }}