class Outer{ private int b = 2; void methodOuter(final int c, int d){ final int e = 5; int f = 6; class A{ void methodA(){ System.out.println(b); System.out.println(c); System.out.println(d); System.out.println(e); System.out.println(f); } } new A().methodA(); } }
public class Test{ public static void main(String[] args){ Outer o = new Outer(); o.methodOuter(3,4); } }