Take a string input, and print the letters in it in the alphabetical order code example
Example: how to check if a string is in alphabetical order in java
public static boolean checkAlphabetic(String input) {
for (int i = 0; i != input.length(); ++i) {
if (!Character.isLetter(input.charAt(i))) {
return false;
}
}
return true;
}