It gives me the error "missing return statement", even though I got both return types.
public boolean spørgsmåltegn()
{
if ( canSee(Risk.class) )
{
eat(Risk.class);
Greenfoot.playSound("slurp.wav");
if (Greenfoot.getRandomNumber(100)<50)
{
fd_spist = fd_spist + 2;
return false;
}
else
{
fd_spist = fd_spist - 1;
return true;
}
}
}
