
I can't seem to figure out how to make this program, can some one help me please? It is due soon!!
4) Write a program that will take an input (Date object will contain fields for the month, day, and year - all ints, so the input such as 02 14 2013) for a date. The program should have following methods and logic:
a. default constructor that initializes the date to January 1, 2000
b. constructor that initializes the date with the three int parameters
c. nextDay method - returns a Date that is one day after the input date. (Don't forget about the end of a month. Ignore leap years.).
d. Input a date (3 ints) and display the next date.
Example:
Input: 02 14 2013 Output: 02 15 2013
Input: 02 28 2013 Output: 03 01 2013
Input: 12 31 2013 Output: 01 01 2014

hi friend,
Please go through the link may this will be helpful for you
http://roseindia.net/java/example/java/core/java-find-next-example.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.