Java's Character class is a utility class: only static methods, and no objects. Write your own, CharTools, without calling Character:
isDigit, isUpperCase, isLowerCase, isLetter, toUpperCase, toLowerCase and digitValue ('7' gives 7; a character that is not a digit gives −1).
Make it impossible to create a CharTools object: declare the class final with a private constructor.
The public class CharToolsApp reads one line and prints the number of letters (and how many are capitals), the number of digits and their sum, the number of other characters, and the line with the case of every letter swapped. For the input
Room B214, Floor 3!
the program prints
Letters: 10 (3 capital)
Digits: 4, their sum: 10
Other characters: 5
Case swapped: rOOM b214, fLOOR 3!