I am facing this weird problem with my Eclipse.
Getting this error
The type Set is not generic; it cannot be parameterized with arguments <Integer>
When you call
Set it is being taken as your class Set, not
Change the declaration to
java.util.Set and it should be resolved.