how to add elements in array list on declaration code example
Example: arraylist with values java
ArrayList<String> cities = new ArrayList<>(Arrays.asList("London", "Tokyo", "New York"));
ArrayList<String> cities = new ArrayList<>(Arrays.asList("London", "Tokyo", "New York"));