ava Program to Check if given Alphabets are Uppercase or Lowercase or Digits or Java Program to test if a character is uppercase/lowercase/number or Java Program To Check Character Is Uppercase / Lowercase / Digit / Special Symbol or Determine character is a capital, small case, digit or special symbol or Java code to check number of uppercase letters, lowercase letters.
Explanation:- As we know that Uppercase(A, B, C........Z) or Lowercase ( a,b,c.....z ) or a Digit ( 1,2,3,.......9 ), or a Special Symbol ( #,@,<,> ). Now to solve this problem we will use ASCII Value
. if the character is between 65 to 90 then You Entered UPPERCASE if it is 97 to 122 then you entered LOWER CASE if it is between 48 to 57 then it is a DIGIT And for rest print SPECIAL SYMBOLS.
Output:
Press any Key:6
You Press Digit
need an explanation for this answer? contact us directly to get an explanation for this answer