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.");
    }
}

When you run the program, the yield will be: 

* isn't a letters in order. 

In Java, roast variable stores the ASCII estimation of a character (number somewhere in the range of 0 and 127) instead of the character itself. 

The ASCII estimation of lowercase letter sets are from 97 to 122. Furthermore, the ASCII estimation of capitalized letters in order are from 65 to 90. 

This is the reason, we analyze variable c between 'a' (97) to 'z' (122). Moreover, we do likewise to check for capitalized letter sets between 'A' (65) to 'Z' (90).

Java Program to Find GCD of two Numbers

Java Program to Check Alphabet using ternary operator
public class Alphabet {

    public static void main(String[] args) {

        char c = 'A';
        
        String output = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
                ? c + " is an alphabet."
                : c + " is not an alphabet.";
        
        System.out.println(output);
    }
}

When you run the program, the yield will be: 

An is a letter set. 

In the above program, the if else proclamation is supplanted with ternary administrator (? :).

Java Program to Generate Multiplication Table