Here is an overview of fundamental Java collection classes that will be useful in this course. Interface names are in italics. For full details about these classes, see the Java API Specification. You may also wish to read the chapter "java.util Part 1: The Collections Framework" in Java: The Complete Reference.
Object boolean equals(Object obj) int hashCode() String toString() Comparable<T> int compareTo(T val) Iterable<T> | +--Collection<T> | boolean isEmpty() | int size() | +--List<T> | | boolean add(T val) | | T get(int index) | | T set(int index, T val) | | | +--ArrayList<T> | +--Queue<T> | | boolean add(T val) | | T remove() | | | +--ArrayDeque<T> | | void addFirst(T val) | | void addLast(T val) | | T removeFirst() | | T removeLast() | | | +--PriorityQueue<T> | +--Set<T> | boolean add(T val) | boolean contains(T val) | boolean remove(T val) | +--HashSet<T> Map<K, V> | V get(Object key) | V put(K key, V val) | V remove(Object key) | +--HashMap<K, V>