public class Node { public T wert; public Node next; public Node(T w){ this.wert = w; } public void setWert(T w){ this.wert = w; } public void setNext (Node n){ this.next = n; } }