cheking if a string is in alphebitcal order c 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;
}