char to string java code example
Example 1: convert char to string
char c = 'a';
String s = Character.toString(c);
Example 2: char to string jva
char ch = 'a';
String.valueOf(ch);
char c = 'a';
String s = Character.toString(c);
char ch = 'a';
String.valueOf(ch);