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