Java Utililty Methods Char to String

List of utility methods to do Char to String

Description

The list of methods to do Char to String are organized into topic(s).

Method

StringcharToString(char c)
convert a char to a string
char[] item = { c };
return (new String(item));
StringcharToString(char ch)
char To String
if (isAsciiPrintable(ch)) {
    return String.valueOf(ch);
} else {
    StringBuilder buffer = new StringBuilder("\\u");
    String hex = Integer.toHexString((int) ch);
    for (int i = 0; i < 4 - hex.length(); i++) {
        buffer.append('0');
    buffer.append(hex);
    return buffer.toString();
String[]charToString(char[] values)
char To String
if (values == null) {
    return null;
String[] results = new String[values.length];
for (int i = 0; i < values.length; i++) {
    results[i] = String.valueOf(values[i]);
return results;
...
StringcharToString(final char value)
char To String
return String.valueOf(value);