//Title: Singly-Linked List Implementation //Version: SLink.java,v 1.3 2002/11/26 10:47:52 pbj Exp //Copyright: Copyright (c) 2002 //Author: Paul Jackson //Organisation: School of Informatics, University of Edinburgh // SLink is an implementation detail of the SLinkedList class, and so // is not declared as a public class. Non public classes are only visible // to other classes within same package. class SLink { protected Object element; protected SLink nextLink; SLink(Object element, SLink nextLink) { this.element = element; this.nextLink = nextLink; } }