1class Main {
2 public static void main(String[] args) {
3
4 // declare a variable
5 char c = 'a';
6
7 // checks if c is an alphabet
8 if (Character.isAlphabetic(c)) {
9 System.out.println(c + " is an alphabet.");
10 }
11 else {
12 System.out.println(c + " is not an alphabet.");
13 }
14 }
15}