Filter an object list based on Integerlist [closed]
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 days ago . Improve this question I have a class like class Employee String id String name I want to filter out the list of employees based on the list of deptId which is an integer list Employee emp1 = new Employee("1","Ally"); Employee emp2 = new Employee("2","Billy"); ArrayList<Employee>