Unit-2 Objects and Classes Character Class
Introduction Java provides a wrapper class for every primitive data type. These classes are Character, Boolean, Byte, Short, Integer, Long, Float, and Double for char, boolean, byte, short, int, long, float, and double. All these classes are in the java.lang package. They also contain useful methods for processing primitive values. The Character class has a constructor and several methods for determining a character’s category (uppercase, lowercase, digit, and so on) and for converting characters from uppercase to lowercase, and vice versa.
Program