class LinkedList {
    public Object obj;
    public LinkedList next;

    /*
     * There is no reason to create a linked-list node without
     * a contained object, so there is no no-arg constructor.
     */

    /** Create new unlinked list node containing given object */
    public LinkedList(Object what) {
	this(what, null);
    }

    /** Add new list node to existing linked list */
    public LinkedList(Object what, LinkedList list) {
	obj = what;
	next = list;
    }
}
