Using the Character class

This code example shows a few of the methods of the Character class. First a variable c is declared which is a variable of type “char” and it is assigned the value “a”.
The methods isLowerCase, isUpperCase and isLetter which all returns a boolean value are used to check whether the variable is uppercase, lowercase or if it’s a letter.
Finally the results are displayed using System.out.println statements.

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?