CSC-220 HW8 Implementing Linked List Methods with Solution

Due: Monday, November 26 11:59pm

Solution

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.