Answers for "to string char"

2

Convert char to string java

// Convert char to string java
public class CharToStringJava
{
   public static void main(String[] args)
   {
      char ch ='G';
      String str = Character.toString(ch);
      System.out.println("char to string is: " + str);
   }
}
Posted by: Guest on February-19-2021
1

char to string jva

char ch = 'a';
String.valueOf(ch);
Posted by: Guest on November-14-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language