Q:

Java Program to convert a array to a string

0

Java Program to convert a array to a string

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

public class demo1
{
   public static void main(String args[])
   {
      char[] arr = {'h','e','l','l','o'};
      String str = new String(arr);
      System.out.println(str);
 
   }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now