class LinkedList {
    private Object obj;
    private LinkedList next;

    public LinkedList(Object what) {
	obj = what;
    }

    public LinkedList(Object what, LinkedList list) {
	obj = what;
	next = list;
    }

    public Object getObject() {
	return obj;
    }

    public LinkedList getNextNode() {
	return next;
    }

    public void setNextNode(LinkedList newNext) {
	next = newNext;
    }
}

The reference to the object contained in a list node need not change,
but there must be a method to modify the reference to the next element
in the list so that the structure of a list can be modified.
