I didn't understand why in the line that is write don't work and why don't work. Other things that I din't understand because here, T, don't specify that extends anything (? extends T), will be just one specific type.
So you can see that the Float and the Number can be use in the fromArrayToCollection. And I din't understand why too.
I understand when is using Object and Object as arg. String and String, but when is different I didn't understand how the program will let compile or not.
and you call myMethod with a Number object or an Integer number, that they upcast, and in the last case it is a Number array and a String Collection, which aren't on the same hierarchy tree besides them inheriting from Object, but ignore that Object part.
So it is based on that in that case.
Mark [ February 03, 2006: Message edited by: Mark Spritzler ]