I have two Pojo classes with another field with a unique identifier.
I want to intersect two List<A>
and List<B>
.
What is the best thing to do. One of them - I can just repeat it twice, but then the complexity is too high n2.
is the best way to do this? Can I do this using a comparator?
Class A { Id, Name ,DOB} Class B{ id, aid ,location }
I have list A and list B
now want to get list A with location in B
Zuned ahmed
source share