Char.valueOf

Returns a {@code Character} instance representing the specified {@code char} value. If a new {@code Character} instance is not required, this method should generally be used in preference to the constructor {@link #Character(char)}, as this method is likely to yield significantly better space and time performance by caching frequently requested values.

This method will always cache values in the range {@code '\u005Cu0000'} to {@code '\u005Cu007F'}, inclusive, and may cache other values outside of this range.

@param c a char value. @return a {@code Character} instance representing {@code c}.

class Char
static
valueOf
(
char c
)

Meta