public static <E, F extends E> void append( ArrayList<E> a, ArrayList<F> b, int count) { for (int i = 0; i < count && i < b.size(); i++) a.add(b.get(i)); }
extends means "subtype", i.e. extends or implements
Can specify multiple bounds: E extends Cloneable & Serializable