Ask Experts Questions for FREE Help !
Ask
    morrisey43's Avatar
    morrisey43 Posts: 1, Reputation: 1
    New Member
     
    #1

    Dec 23, 2012, 03:44 AM
    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.

Check out some similar questions!

Java [ 2 Answers ]

Write a program that converts 10, 50, and 100 kilograms to pounds

Java? [ 1 Answers ]

The problem is: "Design a class whose instance stands for one pack of cards and an other class whose instance stands for one card. Your program choose two cards randomly and output the result of comparison of the chosen cards. The suits order is spade >heart > diamond > club. The comparison...

Java! [ 2 Answers ]

Please will you help me with these questions... where can I find a great site that will help me answer these... 1/ Who developed Java and when? 2/ What are some unique features of Java? 3/ Is java used for websites or stand alone programs? 4/ What does it mean when I say java is an "object...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.