Skip to content

Linked Lists Lab

Instructions

Download the following files:

These files are in the labs.linkedlists package. Make sure to put them in appropriate directories, e.g.:

src/
└── labs/
    └── linkedlists/
        ├── SimpleList.java
        ├── SinglyLinkedList.java
        └── SinglyLinkedListTest.java

Description

The first file is a SimpleList interface that provides common functionality for lists.

The second file is an unfinished implementation of the SimpleList interface using a singly-linked list.

The third file contains the Gradescope submission tests.

Instructions

Complete the unfinished methods in SinglyLinkedList.java. Work on the methods in the order they appear and test each method before moving on to the next one.

Submitting

Submit SinglyLinkedList.java to Gradescope.