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});
No comments:
Post a Comment