how ot cast a char as a string code example
Example 1: convert char to string
char c = 'a';
String s = Character.toString(c);
Example 2: convert char[] to string
char[] chars = {'a','b','c','d','e'};
string s = new string(chars);
char c = 'a';
String s = Character.toString(c);
char[] chars = {'a','b','c','d','e'};
string s = new string(chars);