## IN ***JAVA*** - Upper Lower or Number Write a program to check whether a entered character is lowercase ( a to z ) o
Posted: Sat May 14, 2022 2:57 pm
## IN ***JAVA*** - Upper Lower or Number
Write a program to check whether a entered character is lowercase ( a to z ) or uppercase ( A to Z )
or number (0-9). if the input letter is lowercase, print `<letter> is a lowercase alphabet`
if the letter is the uppercase, print `<letter> is a uppercase alphabet`
if the letter is a number, print `<letter> is a number`
if the letter is not an alphabet and number, print `this input cannot be computed`
Tips:
- you can refer to ASCII table
- use `nextLine().charAt(0)` or `next().charAt(0)` to receive `char` input from user
**Example:**
```text
Please enter the letter:
> A
'A' is a uppercase alphabet
Please enter the letter:
> 3
'3' is a number
Please enter the letter:
> %
this input cannot be computed
```
Write a program to check whether a entered character is lowercase ( a to z ) or uppercase ( A to Z )
or number (0-9). if the input letter is lowercase, print `<letter> is a lowercase alphabet`
if the letter is the uppercase, print `<letter> is a uppercase alphabet`
if the letter is a number, print `<letter> is a number`
if the letter is not an alphabet and number, print `this input cannot be computed`
Tips:
- you can refer to ASCII table
- use `nextLine().charAt(0)` or `next().charAt(0)` to receive `char` input from user
**Example:**
```text
Please enter the letter:
> A
'A' is a uppercase alphabet
Please enter the letter:
> 3
'3' is a number
Please enter the letter:
> %
this input cannot be computed
```