All pastes #125549 Raw Edit

ListNode

public java v1 · immutable
·published 2006-08-10 18:50 UTC
rendered paste body
public class ListNode{        private Object value;        private ListNode next;        public ListNode(Object initValue, ListNode initNext)        {                value = initValue;                next= initNext;        }        public Object getValue()        {                return value;        }        public ListNode getNext()        {                return next;        }        public void setValue(Object theNewValue)        {                value = theNewValue;        }        public void setNext(ListNode theNewNext)        {                next=theNewNext;        }}