Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

create new empty list java

List myList = new ArrayList();
or with generics (Java 7 or later)

List<MyType> myList = new ArrayList<>();
or with generics (Old java versions)

List<MyType> myList = new ArrayList<MyType>();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #empty #list #java
ADD COMMENT
Topic
Name
2+2 =