Java Collections Archive
public class LinkedHashSet<E> extends HashSet<E> implements Set<E>, Cloneable, Serializable Hash table and linked list implementation of the Set interface, with predictable iteration order. This implementation differs from HashSet in that it maintains a doubly-linked list …
A HashSet is a collection set that neither allows duplicate elements nor order or position its elements. This class implements the Set interface and extends AbstractSet. It creates a collection that uses a hash table …
An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list. A ListIterator has no current element; …
LinkedList class extends AbstractSequentialList and implements List, Deque and Queue interface. It can be used as List, stack or Queue as it implements all the related interfaces. It can contain duplicate elements and is not …
The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed. Standard Java arrays are of a fixed length. After arrays are created, they cannot grow or …
Collections in java is a framework. It is are one of the most commonly reusable data structures. Collection framework provides many interfaces (Set, List, Queue, Deque etc.) and classes ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet …