how to convert character into 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);