Check if a character representing an alphabet
public class Main { public static void main(String[] args) { String nama = "Java Java"; if (Character.isLetter(nama.charAt(5))) { System.out.println("The fifth character is an alphabet!"); } } }