I want to create an array that contains ArrayList
I\'ve tried
ArrayList name[] = new ArrayList()[];
I know this is an old post, but someone just asked the same question and since nobody has mentioned the following solution, here it is.
One way to get around it could be something like a 2d array (the recent question was about a 2d array or ArrayLists) of objects and then you should be able to put ArrayList references in the array. I have not tested it, but something like this should work.
Object [][] data = new Object[5][5];
data[0][0] = new ArrayList(); // etc . . .