Im getting an error message stating not a statement and I cant figure out why. If I delete one of the 3 lines and compile everything is ok but not when there is 3 lines to meet the requirements asked for. Any suggestions would be greatly appreciated. This is what I have so far:
/**
* Sceanario stops once it reaches 0 crab, 0 worm, and 0 lobster.
*
*/
public void act()
{
if (getObjects(Crab.class).size() == 0 ||
getObjects(Worm.class).size() == 0)
getObjects(Lobster.class).size() == 0)
Greenfoot.stop();
}