[Java] New arraylist with value

Ref: stackoverflow: Initialization of an ArrayList in one line

List<String> places = Arrays.asList("Buenos Aires", "Córdoba", "La Plata");
This entry was posted in Java. Bookmark the permalink.