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
相關文章
相關標籤/搜索