Java Program to Check Whether a Character is Alphabet or Not

Previous
Next

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.

Previous
Next

Join Our News Letter – Stay Updated

Subscribe to Awesome Java Content.




Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog