how to convert a char into a string in ajva 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);