class outer
{
int x = 3;
void method(final int y)
{
final int x=4;
class Inner
{
void function()
{
System.out.println(outer.this.x );
System.out.println(x );
}
}
Inner inner = new Inner();
inner.function();
}
}
class day0904
{
public static void main(String[] args)
{
outer ou = new outer();
ou.method(5);
ou.method(6);
}
} |