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