public class Test {
public static void main(String[] args) {
}
}
class Outer {
void aMethod() {
class MethodLocalInner {
void bMethod() {
System.out.println("Inside method-local bMethod");
}
}
}
}
有人可以告诉我如何打印从bMethod
消息?方法本地内部类
Thanks..realised我哪里wrong..I把新实例行localinner课前创建。 – Omnipotent 2008-09-17 07:00:52