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 typeE(e.g. x.new A() where x is an in...
转载
2019-03-15 15:35:04 ·
2061 阅读 ·
1 评论