declare array of lists code example
Example: how to make an array of arraylists in java
ArrayList<Integer> [] myList = (ArrayList<Integer>[]) new ArrayList[4];
ArrayList<Integer> [] myList = (ArrayList<Integer>[]) new ArrayList[4];