Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Ask for java help (https://www.askmehelpdesk.com/showthread.php?t=723976)

  • Dec 23, 2012, 03:44 AM
    morrisey43
    Ask for java help
    Can somebody please help me with the code for this question? I don't even know where to begin :(

    Write the code for the following methods in the newDate class:
    Public boolean validDate (int day, int month, int year)
    The month can only be in the range 1-12 and a month must have the correct
    Number of days e.g. 30.2.1997 is invalid because February can only have 28
    Days, or 29 days if the year is a leap year.
    This method must return true if the date is valid and false if the date is
    Invalid.

  • All times are GMT -7. The time now is 03:22 AM.