publicclass Alphabet {publicstaticvoid 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.");
}}
Java Program to Check Alphabet using if else
Reviewed by
on
December 20, 2019
Rating: 5
No comments: