java

remove items from custom List

I have two custom List objects. I am trying to return records if Id matches in both list. I am doing a foreach loop and setting id to those that only has a match but in my webpage I am getting records that do not match in both list , like …