ArrayList<String> cities = new ArrayList<>(Arrays.asList("London", "Tokyo", "New York"));
List<String> x = new ArrayList<>(Arrays.asList("xyz", "abc"));
var x = List.of("xyz", "abc"); // 'var' works only for local variables