1// Convert char to string java
2public class CharToStringJava
3{
4 public static void main(String[] args)
5 {
6 char ch ='G';
7 String str = Character.toString(ch);
8 System.out.println("char to string is: " + str);
9 }
10}
1from character to string:
2 char c = 'a';
3 String s = Character.toString(c);
4 //s == "a"