ArrayList со значениями Java
ArrayList<String> cities = new ArrayList<>(Arrays.asList("London", "Tokyo", "New York"));
Cute Cowfish
ArrayList<String> cities = new ArrayList<>(Arrays.asList("London", "Tokyo", "New York"));
List<String> x = new ArrayList<>(Arrays.asList("xyz", "abc"));