class Outer
{
int x=3;
void method(final int a)
{
final int y=4;
class Inner
{
void function()
{
System.out.println(y);
System.out.println(x);
}
}
new Inner().function();
}
}
public class InnerClassDemo
{
public static void main(String[] args)
{
Outer out = new Outer();
out.method(7);
out.method(8);
}