Exception in thread "main" java.lang.Error: Unresolved compilation problem:
No enclosing instance of type Lists is accessible. Must qualify the allocation with an enclosing instance of type Lists (e.g. x.new A() where x is an instance of Lists).
java代码出现上面问题
原因
Mian 方法是静态 不能调用 非静态方法