char cannot be converted to string

Solutions on MaxInterview for char cannot be converted to string by the best coders in the world

showing results for - "char cannot be converted to string"
Jenni
19 Oct 2016
1//As the compiler said, you can't convert a char to a String. 
2//If you have a char and you really want to convert it to a String of length 1, 
3//this will work:
4
5String s = String.valueOf(c);
6//Or
7String s = Character.toString(c);
8