Linked Lists:
Inside View of the LinkedNodeCollection Class

Alyce Brady
Kalamazoo College

In the Bad News Bearers Lab, you saw how to build up a linked list and traverse it, using the standard Java LinkedList class (a class in java.util that implements a doubly-linked list).  In this lab, you'll be focusing on implementation, using the simpler LinkedNodeCollection and DoublyLinkedNodeCollection classes.


Mini-Lab 1: Basic Observer Methods


Getting Started

Empty List

List with One Element

List with Multiple Elements

 


Analysis Question


  1. Can you come up with a second implementation for the isEmpty method in LinkedNodeCollection?


Author: Alyce Brady abrady@kzoo.edu