SyntaxFix
Write A Post
Hire A Developer
Questions
You can use retainAll method and get the intersection of your two sets.