jeudi 26 février 2015

Test Program for Date class

I have written a Date class, which adds/subtracts days/months/years taking into consideration leap years. I now need to write a test program with hard coded data to test my implementation. The easiest way would be to create a "reference" date and then have a loop which takes it forward one day at a time, over say a 3 year period (including a leap year) and then print out the reference date together with some other dates constructed relatively from it. I haven't got a lot of java experience so I am wondering how I would actually do this?


Aucun commentaire:

Enregistrer un commentaire