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.

  1. Using toString() method of Character class
  2. Using valueOf() method of the String class
  3. Using concatenation of strings

Example of Conversion of Char to String Java

Input  : 'G'   // Character
Output : "G"  // String

Similar Reads

Methods to Convert Char to String

Let’s discuss three methods in detail for Convert Char to String in Java:...

1. Using Character.toString() Method

We can convert a char to a string object in Java by using the  Character.toString() method of Character class....

2. Using valueOf() method

...

3. Java char to String Example: Using Concatenation of Strings

We can convert a char to a string object in Java by using String.valueOf() method of String Class....

Java char to String: Other Examples

...