I have two list
List<Person> person = new ArrayList<Person>();
List<Employee> employee = new Arraylist<Employee>();
and another list of Person type ,
List<Person> temp_person = new ArrayList<Person>();
Those two list are different , but has one "key" in common that is "id".
Now , I want to check if the "id" of the person is same as "id" of the employee. If I find any match , then add that elements of person to temp_person