This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes list and compare Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "list and compare" Watch "list and compare" New topic

list and compare

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250

i have two list of object, i use constains to know if some item is available in the second......

i would like to know how to get the information of the listPerson2?

any idea?

marc weber

Joined: Aug 31, 2004
Posts: 11343

Did you check the API for methods in List that might help (like indexOf and get)?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: list and compare
It's not a secret anymore!