Here\'s what I have:
public class Node{ Object data; Node next; Node(Object data, Node next){ this.data = data; this.next = next
A recursive solution:
public void addToEnd(Object data){ if (next==null) next = new Node(data, null); else next.addToEnd(data); }