public class Node { Object element; Node next; Node head; public Node (Object x) { element = x; } }