I am wanting to create an array of arraylist like below:

ArrayList<Individual>[] group = new ArrayList<Individual>()[4];

But it’s not compiling. How can I do this?

20 Answers
20

Leave a Reply

Your email address will not be published. Required fields are marked *