I checked the documentation on oracle and there doesn't seem to be a method that can do that so I wonder if there is a trick that I can somehow use to remove an elment? Here is my code:
for (Egg egg : linkedEggs) {
if (CollisionChecker(egg.getxCor(), egg.getyCor()) < 20) {
linkedEggs.remove(egg);
} else if (egg.yCorEgg > 400) {
linkedEggs.remove();
}
}