Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java list to array

List<Foo> list = new ArrayList<>();
Foo[] array = list.toArray(new Foo[0]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #list #array
ADD COMMENT
Topic
Name
4+2 =