bounding java generics by 'super' keyword
- by mohsenof
Why I can use 'super' just with wildcards and not with type parameters?
for example why in Collection interface they've not written toArray method like this
interface Collection"<"T{
public "< S super T S[] toArray(S[] a){
}
}
(sorry, I don't know how to deal with "<")