I am getting data from the two different databases and storing them in the java.util.List
Elements of database:1
column 1 column 2
**Investment Number** Investment Name
123 abcwe
124 agsdf
454 lkjcv
784 ojncv
478 hfdgh
852 qweyu
745 mmkty
201 pbckl
560 jklfg
741 nbvbn
storing them in list1
Elements of database:2
column 1 column 2
Investment Number Property Number
123 548
980 743
454 200
350 357
478 698
852 223
745 795
784 213
341 022
741 900
storing them in list2
need to compare according to the Investment Numbers if Investment Number of list1 available in list2 then need to keep and discard others.
Thanks,