## IN ***JAVA*** - Upper Lower or Number Write a program to check whether a entered character is lowercase ( a to z ) o

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

## IN ***JAVA*** - Upper Lower or Number Write a program to check whether a entered character is lowercase ( a to z ) o

Post by answerhappygod »

## 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
```
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply