In Java, Character.toString(c) returns a String of length 1 containing the char c, and boxed.toString() does the same for a Character object. Both give the same result as String.valueOf(c).
Since Java 11, Character.toString(int codePoint) accepts a full Unicode code point, so it can also build characters above U+FFFF, such as emoji. Those Strings have length 2, because they are stored as a surrogate pair.
toString exists as an instance method, boxed.toString() (Java 1.0), and as two static methods: Character.toString(char) (Java 1.4) and Character.toString(int codePoint) (Java 11). No import is needed, because java.lang is always available.
Java 11+ for the code point overload.
Character.toString(int codePoint) requires Java 11. On Java 8, write new String(Character.toChars(codePoint)), which builds the same String and also throws IllegalArgumentException for an invalid code point. The char and instance forms work on every version.
Syntax
Pick the form that matches what you have.
Java
Character boxed = 'Q';
String a = boxed.toString(); // "Q"
String b = Character.toString('Q'); // "Q"
String c = Character.toString(0x1F600); // Java 11+: the emoji, length 2
String d = new String(Character.toChars(0x1F600)); // Java 8 equivalent
Call
What it does
Character.toString(c)
One char as a String.
boxed.toString()
A Character object as a String.
Character.toString(cp)
Any code point as a String (Java 11+).
toString() since Java 1.0, toString(char c) since Java 1.4, and toString(int codePoint) since Java 11.
Library declarations
Java
// java.lang.Character
public String toString() // Java 1.0
public static String toString(char c) // Java 1.4
public static String toString(int codePoint) // Java 11
Parameters
Parameter
Description
(none)
Instance form: no parameters.
c (char)
The char to convert.
codePoint (int)
A Unicode code point, 0 to 0x10FFFF.
Return Value
Return Value
Description
String
Length 1 for a char or BMP code point; length 2 for a supplementary code point.