Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java create list with one element

List<String> list = Collections.singletonList("foo");
 
PREVIOUS NEXT
Tagged: #java #create #list #element
ADD COMMENT
Topic
Name
3+8 =