public boolean healthy()
{
if(organic)
{
if(toppings<=3)
{
if((size=="small"))
{
return true;
}
else
{
return false;
}
}
}
else
{
return false;
}
}
The program is saying that I am missing a return statement before the last bracket. But if I were to put one there, there would always be one answer to the boolean which would be true and false. This puts all the other 'if' statements to no use which is a problem. Any help?