Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding oldest Date from a collection of Date objects

807589Oct 13 2008 — edited Oct 13 2008
I am trying to figure out how I might compare a collection of Date objects to each other, to find the oldest date, remove it from the list, and then repeat the process.

I can see that Date.compareTo(Date) lets me compare two objects, but i am not sure how i could apply this to a collection of Dates

Any thoughts?

Regards

Will
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2008
Added on Oct 13 2008
3 comments
1,078 views