Write a JAVA Program to input a character and check whether it is a alphabet or not.
Write in Java.lang
Please write the Program an send.
If you will help me I will mark you as brainlist.
Answers
Answered by
0
Explanation:
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
* is not an alphabet.
HOPE THIS HELPS YOU BUDDY PLEASE MARK ME THE BRANILIEST AND FOLLOW ME.
Answered by
1
class character
{
public static void main(char ch)
{
if(ch >= A && ch<= Z || ch >= a && ch<= z)
System.out.print("it is character")
else
System.out.print("it is not a character")
}
}
Similar questions