list = new arraylist code example
Example 1: java create arraly list
List<String> words = new ArrayList<String>();
Example 2: how to make a new arraylist java
ArrayList<Type> name = new ArrayList<Type>();
Example 3: java arraylist declaration
ArrayList<E> yourArray = new ArrayList<E>();
//'E' can be raplaced with any data type or object, or left as
// E if used for general funcitonality