Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java return list

public List<E> foo() {
  	// List is abstract, use ArrayList (child of List) for instances
	List<E> list = new ArrayList<>();
    return list;
}
 
PREVIOUS NEXT
Tagged: #java #return #list
ADD COMMENT
Topic
Name
7+2 =