class OuterClass { public static void main(String[] args) { int a = 1; class test { public void run() { System.out.println(a); } } }} 廖老师,不是说局部内部类只能访问 方法里面final修饰的变量吗,为什么我刚刚试了没有报编译错误;
Sign in to make a reply
用户7980781990