I thought that method would work like this
- for (int j = 0; j < bullets.size(); j++) {
- for (int k = 0; k < asteroids.length; k++) {
- if (bullets[j].intersect(asteroids[k])) {
- asteroid[k].collide();
- bullets.remove(bullet);
- }
- }
- }
but I get an error message saying "The type of expression must be an array type but it resolved to an ArrayList"
There's obviously something I'm still missing about arrays.