I have this code below and it keep telling me that thanksgiving() must return a result type of int. I have casted all the results just to make sure, but nothing seems to be work
public static int thanksgiving(int year)
{
int day = firstOfMonth( year );
if ( day == THURS )
{
return (int) 22;
} else if ( day > THURS )
{
return (int) 29 - ( day - THURS );
} else {
return (int) 22 + ( THURS + day );
}
}