String [] a = { "apple", "snapple", "crackle" }; ArrayList<String> choices = new ArrayList<String>(Arrays.asList(a));
Programming Tips - Java: Best away to convert a Java array into an ArrayList
Date: 2012sep4
Language: Java
Q. Java: Best away to convert a Java array into an ArrayList<>
A. Use Arrays.asList() in the ArrayList constructor, like this: