class MainClass{
publicstaticvoid main(String[] args) {
Inner inner = new Inner();
}
class Inner {
Inner() {
}
}
}
No enclosing instance of type MainClass is accessible. Must qualify the allocation with an enclosing
instance of type MainClass (e.g. x.new A() where x is an instance of MainClass).