Java Compare Two Lists
- by agazerboy
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