I have this method to see whether not the year is a leap year or not.
heres the code
i get the error missing return statement at the end.
What can i do , i can't add return true or return false, becuase that screws it up.
public boolean isLeapYear()
{ if(years % 4 == 0)
{ if(years % 100 == 0)
{ if( years % 400 == 0)
return true;
else
return false;
}
}
else
return false;
}