import java.util.ArrayList; import java.util.Collection; class C { void foo1(Collection src) { T t = src.iterator().next(); } void foo2(ArrayList src) { T t = src.iterator().next(); } void foo3(Collection dst, T t) { dst.add(t) } int foo4(Comparable comparable, T t) { return comparable.compareTo(t); } void foo5(Collection w) { } }