Life is easy because we write the source code.....
Life is easy because we write the source code.....
Life is easy because we write the source code.....
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:You already have a class that can do what you want. You want to add one year to the calendar object. Are you sure you can't find a method to do that?
Mike Simmons wrote:
Rob Prime wrote:You already have a class that can do what you want. You want to add one year to the calendar object. Are you sure you can't find a method to do that?
Um, in the code shown so far, he doesn't have a calendar; he has a Date. There are methods in Date that could conceivably be used here, but the API says they're deprecated, and we should use methods in Calendar or GregorianCalendar instead. So that's why he's looking into new classes like GregorianCalendar.
Pramod P Deore wrote:I didn't get how to find it using GregorianCalendar. Anybody knows?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Life is easy because we write the source code.....
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Life is easy because we write the source code.....
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions