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!

Element occurrence in an ArrayList

807580Apr 24 2010 — edited Apr 25 2010
Hi!

Does anyone know what should I use in order to find out how many elements(i.e.objects) are identical in an Array List of objects?
Is there any predefined method in the Array List that does that, except "boolean contains(Object elem)" which identifies weather the element exists or not in the ArrayList?
Any comments are appreciated!

Thanks!

Radu Paltineanu.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2010
Added on Apr 24 2010
1 comment
76 views