Fill in addRange so that it adds the whole numbers 1 through n to the given list, in order. It returns nothing.
addRange
1
n
Thanks to ? super Integer the same method fills a List<Number> or a List<Object>. The program prints [1, 2, 3] and then [].
? super Integer
List<Number>
List<Object>
[1, 2, 3]
[]