I can use only parseInt and if-else-statements and I'm stuck right now. I understood the logic, but I can't control for example february dates and leap years. I wrote some statements about it.
boolean leap = false;
if (((year % 4) == 0) && ((year % 100) == 0)
        && ((year % 400) == 0) && ((year % 4000) != 0))
    leap = true;
else
    leap = false;
But I can't contact with february. Can you help me please?
 
     
     
    