I have a static method wich accepts a generic Set<?> someSet
public static void testSetGeneric(Set<?> someSet){
someSet.add("something");
}
I get a compilation error:
The method add(capture-of ?) in the type Set<capture-of ?> is not applicable for the arguments
(String)
what do I do wrong?