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