Everyone in the study of Java, the collection framework has a lot of classes, when idle, I tidied up a bit, draw the following 2 diagram. The yellow represents the interface, the green is the abstract class, the blue concrete class. All of the following collection classes implement the iterator interface, which is an interface for iterating through the elements in the collection, consisting mainly of the Hashnext (), Next (), and remove () three methods. One of its sub-interfaces Linkediterator added three methods on top of it, namely Add (), previous (), hasprevious (). That is, if the first iterator interface, then in the collection of elements, you can only traverse backwards, the traversed element will not be traversed, usually the unordered collection is implemented by this interface, such as HashSet,HashMap, and those elements of the ordered collection , the implementation of the general is the Linkediterator interface, the implementation of this interface can be a collection of two-way traversal, either through next () access to the next element, but also through previous () access to the previous element, such as ArrayList.
Java Collection Framework Diagram