Java出现No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing

最近在看Java,在编译写书上一个例子时,因为书上的代码只有一部分,因而就本身补了一个内部类。结果编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instance of type E(e.g.  x.new A() where x is an ins
相关文章
相关标签/搜索