January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.lang.Character
This class is a smaller counterpart to the J2SE
Character class. It provides an object wrapper
around a single char primitive data type. The
class contains several static methods for testing the type of
character stored, as well as for converting between uppercase and
lowercase letters. Use the static digit() method
to convert the character to a decimal value, using the specified
radix (e.g., radix 8 for octal). To dump the stored character back
into a primitive char data type, use the
charValue() method.
public final classCharacter{ // constants public static final intMIN_RADIX;public static final intMAX_RADIX;public static final charMIN_VALUE;public static final charMAX_VALUE;// static methods public static intdigit(char ch, int radix); public static booleanisDigit(char ch); public static booleanisLowerCase(char ch); public static booleanisUpperCase(char ch); public static chartoLowerCase(char ch); public static chartoUpperCase(char ch); // public constructor publicCharacter(char value); // public instance methods public charcharValue(); public booleanequals(Object obj); public inthashCode(); public StringtoString(); }
Read now
Unlock full access