Create an array of ArrayList elements

You cannot create an array of a generic type.

Instead, you can create an ArrayList<ArrayList<String>>.

Leave a Comment