import java.util.LinkedList;
public class Person {
private static LinkedList link;
Person(){
link = new LinkedList();
System.out.println("the length of link is:" + link.size());
}
public static void main(String[] args) {
Person p = new Person();
}
}
输出结果:the length of link is:0