class Outer{ int x=3; void method(final int a) { final int y=4; class Inner { void function() { System.out.println(a); } }new Inner().function(); }} class InnerClassDemo3 { public static void main(String[] args) { Outer out=new Outer(); Out.method(7); out.method(8); }}报错信息显示Outer out=new Outer();找不到符号:变量out位置:类InnerClassDemo31个错误
添加回答
举报
0/150
提交
取消