public static boolean checkAlphabetic(String input) { for (int i = 0; i != input.length(); ++i) { if (!Character.isLetter(input.charAt(i))) { return false; } } return true; }