how to statically declare value to arraylist code example
Example 1: arraylist with values java
ArrayList<String> cities = new ArrayList<>(Arrays.asList("London", "Tokyo", "New York"));
Example 2: how to make a new arraylist java
ArrayList<Type> name = new ArrayList<Type>();