So in this situation, it's preferable to use the toLowerCase method of the Character class. The Character class also contains several methods for converting between character and integer values. Character.digit returns the numeric value of a character considered as a digit in a given radix. Character.getNumericValue returns the numeric value of a character digit, using the value specified in an internal table called the Unicode Attribute Table. The Unicode Attribute Table is also used to specify the type of a Unicode character.
Types are categories such as punctuation, currency symbols, letters, and so on.
A final example of how you can use the Character class has to do with Unicode character blocks. These blocks are used to group related characters. If you've done much programming in the Java TM programming language, you've probably encountered applications that terminate abnormally with an uncaught exception. In this example, the program terminates abnormally due to an uncaught exception. The first rule is that an uncaught exception terminates the thread in which it occurs.