package weiss.nonstandard; // Basic node stored in a linked list // Note that this class is not accessible outside // of package weiss.nonstandard class ListNode { // Constructors public ListNode( AnyType theElement ) { this( theElement, null ); } public ListNode( AnyType theElement, ListNode n ) { element = theElement; next = n; } public AnyType element; public ListNode next; }