Linked List Example with Header Node

There are 4 files to look at to understand this example.

The LinkedList class is defined in LinkedList.java.

The ListNode class is in ListNode.java.

The iterator class, is in LinkedListItr.java.
 

The driver, which sets up a Linked List and prints it, is in ListTest.java.