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!

Compare values in an ArrayList to another int variable

807591Apr 4 2008 — edited Apr 5 2008
Hi all i'm just starting to use and understand ArrayList's, however i've come upon a problem and am a bit stuck! I want to compare an int variable, say int num to the values in an arrayList to see if the arrayList contains a match to num. I've looked through several tutorials and haven't found anything that talks about this, so is it possible and if so how?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2008
Added on Apr 4 2008
12 comments
1,267 views