I've got a type Package
, and I want to make something like a rubic's cube. I want to make the floor with a 2-dimensional array and each entry will hold a list (3D).
Making my 2D array
Package[][] floor = new Package[x][y];
And I've got my List of package, and want to make something like this
floor[i][j]= (new ArrayList <Package>()); in a loop
Can someone explain why I've got the error message:
"Cannot convert Package to ArrayList Package"
On my lessons teacher said, I can do something like this.