PPT Slide
Method Summary for Interface List - Continued
boolean retainAll(Collection c) Retains only the elements in this list that are contained in the specified collection (optional operation).
Object set(int index, Object element) Replaces the element at the specified position in this list with the specified element (optional operation).
int size() Returns the number of elements in this list.
List subList(int fromIndex, int toIndex) Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.