class ListNode <E> {
	/* data attributes */
	private E element;
	private ListNode <E> next;

	/* constructors */
	public ListNode(E item) { 
		this(item, null); 
	}

	public ListNode(E item, ListNode <E> n) { 
		element = item; 
		next = n; 
	}

	/* get the next ListNode */
	public ListNode <E> getNext() {
		return next;
	}

	/* get the element of the ListNode */
	public E getElement() {
		return element;
	}

	/* set the next reference */
	public void setNext(ListNode <E> n) {
		next = n;
	}
	
	/* set the next element of the ListNode */
	public void setElement(E e) {
		element = e;
	}
}
