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;
}
Also in Java:
- java fx display simple rectangle
- javafx detect collision
- indexof java
- how to create a draw Rectangle in java
- java iterator example
- get value textfield java
- delete element from arraylist
- how to copy all files and subdirectories in directory in java
- string to double java exception
- java check if args is empty
- write an infinite loop java
- how to check if the file has remaining without reading from it java
- java variable declared
- javafx action event enter key
- date to string java
- java append to array
- how to calculate min, max and average and write the output into into a text file in java
- eliminar el primer caracter de un string java
- java create folder
- reentrantreadwritelock java
- count word in string no matter the delimiter java
- BoxLayout java
- how to print in java
- how to know when user is done typing android