Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

list and compare

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

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?

thank
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check the API for methods in List that might help (like indexOf and get)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic