Reading material

If you use the first edition of the textbook, follow the reading material in orange. If you use the second edition, follow the reading material in brown.

(1st) pages 122-125 (Section 4.2.1-4.2.3), page 132 (Section 4.3.1), pages 137-138 (Section 4.5), pages 145-151 (Section 5.1-5.1.3), pages 164-165 (Section 5.3.2) pages 94-95 (Section 3.4.2)

(2nd) pages 194-198 (Section 5.2.1-5.2.3), page 206 (Section 5.3.1), pages 214-218 (Section 5.5-5.6), pages 229-236 (Section 6.1-6.1.3), pages 247-248 (Section 6.3.1-6.3.2), pages 171-172 (Section 4.4.3)

Additional material

Deque
DequeEmptyException
Position (no container)
InspectableContainer
InspectablePositionalContainer
InspectableList
EmptyContainerException
InspectableSequence
Sequence
PositionalContainer
InspectableTree
InvalidPositionException
Tree
InspectableBinaryTree
BinaryTree

java.util.Enumeration
java.util.Iterator
java.util.Vector

DequeStack

Question

Complete the method

/**
 * Removes the duplicates from the specified list.
 *
 * @param list List of elements.
 */
public static void removeDuplicates(List list)
{
    ...
}