Java Compare Two Lists
Posted
by agazerboy
on Stack Overflow
See other posts from Stack Overflow
or by agazerboy
Published on 2010-05-04T00:34:47Z
Indexed on
2010/05/04
0:38 UTC
Read the original article
Hit count: 701
Hi All, Thanks for stoping to help me :)
I have a question, may be for some of you, it will be a basic question :)
I have two lists ( not java lists, you can say two columns)
For example
**List 1** **Lists 2**
milan hafil
dingo iga
elpha binga
hafil mike
meat dingo
iga
neeta.peeta
What I want ! I want that it returns me that how many elements are same. For this example it should be 3 and it should return me similar values of both list and different values too.
Should I use hashmap if yes then what method to get my result?
Please help
P.S: It is not a school assignment :) So if you just guide me it will be enough
© Stack Overflow or respective owner