Q:

Java Program to convert an array to Array List

0

Java Program to convert an array to Array List.

All Answers

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

import java.util.*;
public class demo1 
{
 public static void  main(String[] args) 
 {
  String[] array = new String[] {"C#", "C++","JAVA","Html"};
  ArrayList<String>  input = new ArrayList<String>(Arrays.asList(array));
  System.out.println(input);
  }
}

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