Using Arrays.asList("Buenos Aires", "Córdoba", "La Plata");
is correct. but Any calls to Arrays.asList()
with zero arguments or only one argument could be replaced with either a call to Collections.singletonList()
or Collections.emptyList()
which will save some memory.
Note: the list returned by Collections.singletonList()
is immutable, while the list returned Arrays.asList()
allows calling the set()
method. This may break the code in rare cases.