Methods to Convert Char to String
Let’s discuss three methods in detail for Convert Char to String in Java:
How to Convert Char to String in Java?
In this article, we will learn how to Convert Char to String in Java. If we have a char value like ‘G’ and we want to convert it into an equivalent String like “G” then we can do this by using any of the following three listed methods in Java.
- Using toString() method of Character class
- Using valueOf() method of the String class
- Using concatenation of strings
Example of Conversion of Char to String Java
Input : 'G' // Character Output : "G" // String