Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
Members have full access to the forums. Advertisements are removed for registered users.
Last edited by Deep_4; November 7th, 2012 at 11:49.
If you have no idea where to start, please have a look at this site here: Starting Writing a Program
After reviewing this site and giving it a go, please feel free to come on back if you have any specific problems or questions regarding this problem or your code.
We wish you the best of luck.
I've written the private ints and getters that I need, my real problem is how to do the if statements needed to make the date valid. I don't know whether those are included in the constructor GregorianDate or if they should be separate methods..?
Your question is unclear. Please post your code.
I'm not sure if this will help, and I doubt it'll be a perfect solution, but I posted some code here:
Building your own Date class.
I revisited this code and made it happen in PHP - okay, I know PHP is a different language, but the logic is the same and the PHP version is much cleaner I think. I'm revisiting some of my old Java code, and I think the date class could be significantly improved, however, you'll have to do it for yourself if the code is a start ;-)