不是抽象方法呀boolean addAll(Collection c) 
          Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).

解决方案 »

  1.   

    我看的是sun的教程:http://java.sun.com/docs/books/tutorial/collections/interfaces/list.html
      

  2.   

    not abstract,
    visit http://java.sun.com/j2se/1.4.1/docs/api/java/util/List.html
    or see java.util.List
      

  3.   

    我这里不是讨论这个方法是不是abstract的,而是讨论为什么要这样申明这段代码是从http://java.sun.com/docs/books/tutorial/collections/interfaces/list.htmlcopy过来的
      

  4.   

    也就是说, List本身没有实现这个方法(所以其实List根本没什么用处), 但是他强制它的子类实现这个接口, 所以你可以看看ArrayList就实现了这个接口, 也就是一个实际可以使用的List了
      

  5.   

    to glassprogrammer() List 本身就是一个接口,根本就不实现任何的方法。
      

  6.   

    还是不明白,在这里加个abstract是不是有点多余,或者说有什么用?
    我想接口中的任何方法都可以达到楼上所说的功能。郁闷。。
      

  7.   

    For those Classes directly implementing List, addAll method is NOT necessory to be implemented. Those Classes could be AbstractList.
    It was designed for those Classes extending AbstractList to implement.Interface A.
    Class B implements A.
    Class C extends B.abstract methods in A are idealy implemented in C, not in B. However, if B implements those methods, I think it's allowable as well anyway.
      

  8.   

    这个贴子的正确答案在http://expert.csdn.net/Expert/topic/1451/1451519.xml?temp=.7631647有兴趣的朋友可以去看一下