not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

44 lines
577 B

package net.jrtechs.www.DataStructures;
/**
* @author Jeffery Russell 8-24-18
*/
/**
*
* @param <E>
*/
public class Node<E>
{
private E data;
private Node<E> next;
public Node(E d)
{
this.data = d;
this.next = null;
}
public Node(E d, Node<E> newNext)
{
this.data = d;
this.next = newNext;
}
public Node<E> getNext()
{
return this.next;
}
public E getData()
{
return data;
}
public void setNext(Node<E> newNext)
{
this.next = newNext;
}
}