The elements stored in the list set are ordered, repeatable, and indexed.
List-specific methods:
Add
Add (index, element );
Addall (index, collection );
Delete
Remove (INDEX );
Modify
Set (index, element );
Search
Get (INDEX );
Sublist (from, );
Listiterator ();
???? |-The list-specific iterator is the self-interface of iterator.
Note: In the iteration process, you cannot use the set method to operate on the set elements, which may cause concurrent modification exceptions.
Therefore, in the process of iteration, only the iterator method can be used to operate the elements of the set.
Listiterator-specific methods:
Boolean hasprevious ()
Returns true if the list iterator contains multiple elements in reverse traversal.
Int nextindex ()
Returns the index of the elements returned by subsequent calls to next.
Int previusindex ()
Returns the index of the elements returned by subsequent calls to previous.
Void set (E)
Replace the last element returned by next or previous with the specified Element (optional ).
Summary of the Collection framework-list