public class Node { Node prev; Node next; Object content; /** * Create the head node. */ public Node() { prev = this; next = this; content = null; } public Node(Node p, Node n, Object c) { prev = p; next = n; content = c; } }