Find the Character Case – Java Problem

in java •  3 years ago 

Java Problem : Find the Character Case
Write a Java program that takes a character as an Input, and prints one of the following values: 1, 0, or -1.

The program should print the value based on certain rules –

If the character is an uppercase alphabet (A – Z), print 1
If the character is a lowercase alphabet (a – z), print 0
If the character is not an alphabet, print -1

https://codeparttime.com/find-the-character-case-java-problem/

Find-the-Character-Case-–-Java-Problem.webp

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!