5 Replies Latest reply: Apr 12, 2011 1:19 PM by jschellSomeoneStoleMyAlias RSS

    A question on Interface Collection<E>

    848755
      In Interface Collection<E>, it has

      addAll(Collection<? extends E> c)

      removeAll(Collection<?> c)

      Why does it use <? extends E> and <?> in these two method? Why not use

      removeAll(Collection<? extends E> c) ?

      Thank you.