I just can’t seem to create an array of ArrayLists with generics.
private ArrayList<FloorInstance>[] floorBatches;
...
floorBatches = new ArrayList<>[numFloorMeshes];
This gives me this error:
[quote]Incorrect number of arguments for type ArrayList; it cannot be parameterized with arguments <>
[/quote]
So I add the so called missing parameter:
floorBatches = new ArrayList<FloorInstance>[numFloorMeshes];
and I get this error instead:
[quote]Cannot create a generic array of ArrayList<DungeonRenderer3.Chunk.FloorInstance>
[/quote]
This has been nagging me for a while now…