└── alphabets /alphabets: -------------------------------------------------------------------------------- 1 | Input Format 2 | 3 | input consists of Character 4 | Constraints 5 | 6 | No Constraints 7 | 8 | Output Format 9 | 10 | if the Given input is A,print the statement is "Upper Case". 11 | if the Given input is a,print the statement is "Lower Case". 12 | if the Given input is 2,print the statement is "Number". 13 | if the Given input is &,print the statement is "Symbol". 14 | Sample Input 0 15 | 16 | A 17 | Sample Output 0 18 | 19 | The Given Character A is Upper Case... 20 | Sample Input 1 21 | 22 | a 23 | Sample Output 1 24 | 25 | The Given Character a is Lower Case... 26 | Sample Input 2 27 | 28 | 4 29 | Sample Output 2 30 | 31 | The Given Character 4 is Number... 32 | 33 | import java.io.*; 34 | import java.util.*; 35 | 36 | public class Solution { 37 | 38 | public static void main(String[] args) { 39 | Scanner sc=new Scanner(System.in); 40 | char s=sc.next().charAt(0); 41 | if(s>='A' && s<='Z') 42 | System.out.println("The Given Character "+s+" is Upper Case..."); 43 | else if (s>='a' && s<='z') 44 | System.out.println("The Given Character "+s+" is Lower Case..."); 45 | else if(s>='0' && s<='9') 46 | System.out.println("The Given Character "+s+" is Number..."); 47 | else 48 | System.out.println("The Given Character "+s+" is Symbol..."); 49 | /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ 50 | } 51 | } 52 | --------------------------------------------------------------------------------