create an arraylist in declaration code example
Example 1: 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
Example 2: how to declare array of arraylist in java
List<List<Individual>> group = new ArrayList<List<Individual>>(4);