I want to create an array that contains ArrayList elements.
I\'ve tried
ArrayList name[] = new ArrayList()[];
There is a way to do it with only little modification of your code.
ArrayList[] name = new ArrayList[10];
This will give you a array of ArrayList.