很难的一个问题,慎入
wyc_ 2014-12-02 08:15:45 public static <T> void copy(List<T> dst, List<T> src)
public static <T> void copy(List<T> dst, List<? extends T> src)
public static <T> void copy(List<? super T> dst, List<T> src)
public static <T> void copy(List<? super T> dst, List<? extends T> src)
上面四个方法都可以实现复制功能,尤其是第三种方法感觉就已经完全可以了,为什么Java 容器采用的第四第种方法呢?