Java Convert char to StringWe can convert char to String in java using String.valueOf(char) method of String class and Character.toString(char) method of Character class. Java char to String Example: String.valueOf() methodLet's see the simple code to convert char to String in java using String.valueOf() method. Let's see the simple example of converting char to String in java. Test it NowOutput: String is: S Java char to String Example: Character.toString() methodLet's see the simple code to convert char to String in java using Character.toString() method. Test it NowOutput: String is: M Next TopicJava String to Object |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India