public class Node { private Object object; private Node next; public Node(Object object, Node next) { this.object = object; this.next = next; } public static void main(String[] args) { Node header = new Node(new Object(), null); header.next = new Node(new Object(), null); // 创建一个头部节点 Node first = new Node(new Object(), header); } }