So currently I'm trying to create a 2D Array of ArrayLists. I know I can switch Array to ArrayList, but that's a bad fix.
This part works
I just can't assign the variable correctly.Code:
private ArrayList<Thing> world;
That throws something that says can't create a generic array of ArrayList<Thing>. Help?Code:
world = new ArrayList<Thing>[size][size];