Programming Code Center(PCC)
[JAVA]

(PCC)::[How-to-write-Java-Program-to-Check-Whether-a-Character-is-Alphabet-or-Not-using-if-else-statement]::[java]

File Name : Character_Alphabet_or_Not.java

//xample: Java Program to Check Alphabet using if else
public class Alphabet {

    public static void main(String[] args) {

        char c = '*';

        if( (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
            System.out.println(c + " is an alphabet.");
        else
            System.out.println(c + " is not an alphabet.");
    }
}

Output :

Character_Alphabet_or_Not.jpg