Код: Выделить всё
ArrayList places = new ArrayList();
places.add("Buenos Aires");
places.add("Córdoba");
places.add("La Plata");
Код: Выделить всё
ArrayList places = new ArrayList(
Arrays.asList("Buenos Aires", "Córdoba", "La Plata"));
Подробнее здесь: https://stackoverflow.com/questions/100 ... n-one-line