I have an Integer array as
Integer[] myArray= {1,3};
I have another List of objects MyDept which has the properties id and name.
I want to get those objects of MyDept whose ids matches with the values of myArray.
If the objects in the list are
Objfirst(1,"Training"), Objsecond(2,"Legal"), Objthird(3,"Media")
then I want Objfirst and Objthird.