Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java arraylist to array

List<String> list = new ArrayList<>();
list.add("a");
list.add("ab");
list.add("abc");
list.add("abcd");
// convert
String[] array = list.toArray();
Source by dzone.com #
 
PREVIOUS NEXT
Tagged: #java #arraylist #array
ADD COMMENT
Topic
Name
1+5 =