{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ListNode - ListNode Object theElement ListNode n element =...

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

{[ snackBarMessage ]}