java.lang · java.base · since Java 1.0
Character
public final class Character
implements Comparable<Character>, Constable, SerializableBox for char and the home of Unicode classification (isLetter, isDigit…) and code-point utilities that handle characters beyond the 16-bit range.
Key methods
static boolean isLetter/isDigit/isWhitespace(int cp) | Unicode-aware classification (prefer the int code-point overloads). |
static int toUpperCase/toLowerCase(int cp) | Case mapping per Unicode (locale-free). |
static boolean isSurrogate(char c) | Detects halves of supplementary characters. |
static int charCount(int cp) | 1 or 2 — chars needed for a code point. |
static String toString(int codePoint) | Code point → String, surrogates handled. |