6.8.22.Instantiate and use a method-local inner class
public class MyOuter2 { private String x = "Outer2";
void doStuff() { class MyInner { public void seeOuter() {
System.out.println("Outer x is " + x);
}
}
MyInner mi = new MyInner(); // This line must come
mi.seeOuter();
}
}