previous
|
start
|
next
Wildcards
Wildcards can be bounded in opposite direction
? super F
matches any supertype of
F
public static <F> void append(
ArrayList<
? super F
> a, ArrayList<F> b, int count)
{
for (int i = 0; i < count && i < b.size(); i++)
a.add(b.get(i));
}
previous
|
start
|
next