A DESCRIPTION OF THE PROBLEM : In the javadoc for java.util.LinkedList, it mentioned: "the LinkedList class provides uniformly named methods to get, remove and insert an element at the beginning and end of the list." but there is not insert method in the class. perhaps it meant the add(int,E) method. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - add instead of insert? ACTUAL - Linked list implementation of the List interface. Implements all optional list operations, and permits all elements (including null). In addition to implementing the List interface, the LinkedList class provides uniformly named methods to get, remove and insert an element at the beginning and end of the list. These operations allow linked lists to be used as a stack, queue, or double-ended queue. URL OF FAULTY DOCUMENTATION : http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html
|