一直提示:Exception in thread "main" java.lang.Error: Unresolved compilation problem:
No enclosing instance of type InnerDemo is accessible. Must qualify the allocation with an enclosing instance of type InnerDemo (e.g. x.new A() where x is an instance of InnerDemo).
class Inner{</p><p> void function(){</p><p> sop(x);</p><p> sop(a);</p><p> }</p><p> }</p><p> new Inner().function();</p><p> }</p><p> public void sop(Object obj){</p><p>