I have two list of objects. And this lists of objects have a common property(eg : Id). I would like to check if the property value ie; id of first list and second list is equal and if equal, then create a new list with only the objects having the same property value using java 8.
I have tried using two for loops. But I want to have the solution in java 8