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!

Arraylist - 'Contains' method to check the presence of Date object

aneesahamedaaApr 23 2010 — edited Apr 23 2010
Hello experts,
I would be obliged if anyone could help me with a solution for the following problem. Have an Arraylist of Date objects.

I have today's date in a variable as Date date = new Date();

I need to check whether today's 'date' is present in the Arraylist.

How can I check whether this date variable of type Date is contained in the Arraylist ?

Any help is appreciated.

Regards,
Rony
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2010
Added on Apr 23 2010
4 comments
711 views