please solve it
will mark the best answer as brainlist
no spam
Attachments:
Answers
Answered by
1
Explanation:
The program is written in java.
package mypackage;
import java.util.Scanner;
public class p11 {
/*please give my answer the Brainlyiest answer and follow me ang give me a thanks*/
public static void main(String[] args) {
Scanner obj=new Scanner(System.in);
System.out.print("Enter a character: ");
char c=obj.next().charAt(0);
int a=(int)c;
if(Character.isUpperCase(c)){
System.out.println("Upper case Character.");
}
if(Character.isLowerCase(c)){
System.out.println("Lower case Character.");
}
if(a>=48 && a<=57){
System.out.println("Digits Character.");
}
else{
System.out.println("Special Character.");
}
} }
} } }
Attachments:
Similar questions