I have a char and I need a String. How do I convert from one to the other?
How to convert a char to a string in Java? Anonymous User 2044 02 Aug 2015 I have a char and I need a String. How do I convert from one to the other?
String stringValueOf = String.valueOf('c');String characterToString = Character.toString('c');
String characterObjectToString = new Character('c').toString();
.String concatBlankString = 'c' + "";
String fromCharArray = new String(new char[]{x});