HW9 Implementing Linked List Methods with Solution


Due: Wednesday, November 27 11:59pm

Download the modified source code for chapter 24.  In the MyLinkedList.java file, there are methods that specify you implement their logic.  Please do so.

These methods have the following headers:

  • public boolean contains(Object e);
  • public E get(int index);
  • public int indexOf(Object e);
  • public int lastIndexOf(E e);
  • public E set(int index, E e);

Use the TestMyList.java  file to test your implementation.