public class ListNode  // class provided by College Board
 {private Object value;   // this is the do it yourself Linked List
  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;
    }
   }