CS 201: Data Structures

Linked lists: implementing some interfaces

Hand in via Moodle as LinkedList.java

Goals

Background

The idea of nodes that contain links pointing to other nodes is one of the most powerful techniques in data structure implementation, so it's time to practice. For this assignment, I have provided you with LinkedList.java, a partially implemented class using a singly-linked list to store a sequence of String objects. Your job will be to provide implementations for the un-implemented methods.

Constraints

You will notice that the methods in LinkedList.java are thoroughly documented using javadoc comments. It is VERY IMPORTANT that you adhere to those specifications. In particular:

On the other hand:

What to hand in

Hand in your updated copy of LinkedList.java.

And of course...

Start early, ask questions, and have fun!