Java : 编译报错- No enclosing instance of type ListTest is accessible.

问题描述: 在静态方法中new User()时报错 No enclosing instance of type ListTest is accessible. Must qualify the allocation with an enclosing instance of type ListTest (e.g. x.new A() where x is an instance of ListTe
相关文章
相关标签/搜索