Java Program to Check Whether a Character is Alphabet or Not

This tutorial provides Java Program to Check Whether a Character is Alphabet or Not.

Output:

Enter a Character : d
d is an alphabet.

The ASCII value of lowercase alphabets range from 97 to 122. And, the ASCII value of uppercase alphabets range from 65 to 90.

That’s why, we compared variable character between ‘a’ (97) to ‘z’ (122) for lowercase character and between ‘A’ (65) to ‘Z’ (90) for uppercase character.

That’s all about Java Program to Check Whether a Character is Alphabet or Not.


import_contacts

You may also like:

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.