Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to declare and insert value to arraylist in same line in java

ArrayList<String> places = new ArrayList<>(Arrays.asList("Buenos Aires", "Córdoba", "La Plata"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #insert #arraylist #line #java
ADD COMMENT
Topic
Name
4+3 =