ListNode - } ListNode( Object theElement, ListNode n ) {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
package DataStructures; // Basic node stored in a linked list // Note that this class is not accessible outside // of package DataStructures class ListNode { // Constructors ListNode( Object theElement ) { this( theElement, null );
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } ListNode( Object theElement, ListNode n ) { element = theElement; next = n; } // Friendly data; accessible by other package routines Object element; ListNode next; }...
View Full Document

This note was uploaded on 04/22/2011 for the course CSC 532 taught by Professor Dr.gursaranadhar during the Spring '07 term at University of North Carolina Wilmington.

Ask a homework question - tutors are online