The code below has full meaning for me - its about adding an element of some type, which is a supertype of type T and type S, is definitely such a super-type, so why does the compiler refuse to add an element to the collection?
class GenericType<S,T extends S>{
void add1(Collection<? super T> col ,S element ){
col.add(element);
}
}
source
share