List of utility methods to do Char to String
String | charToString(char c) convert a char to a string char[] item = { c }; return (new String(item)); |
String | charToString(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; ... |
String | charToString(final char value) char To String return String.valueOf(value);
|