package com.two;public class Eight { public void show(){ final int a =1; int b =2; class Ljh{ int c =3; public void print(){ System.out.println("访问外部a:"+a); System.out.println("访问内部c:"+c); System.out.println("访问外部b:"+b); } } Ljh i = new Ljh(); i.print(); } public static void main(String[] args) { Eight E = new Eight(); E.show(); }}
添加回答
举报
0/150
提交
取消