how to check for characters in a string java code example
Example 1: how to check if a char is a letter java
Character.isDigit(string.charAt(index)) //(JavaDoc) will return true if it's a digit
Character.isLetter(string.charAt(index)) //(JavaDoc) will return true if it's a letter
Example 2: character at index of string java
String str = "Grepper";
char ch = str.charAt(0);
//ch is assigned the value of G