THE JAVA PROGRAM TO ILLUSTRATE THE USE OF NESTED CLASS

import java.lang.*;
class outer
{
int m=10;
class inner
{
int n=20;
void display()
{
System.out.println("m=" +m);
System.out.println("n=" +n);
}
}
}


class jlab5
{
public static void main(String args[])
{
outer outobj=new outer();
outer.inner inobj=outobj.new inner();
inobj.display();
}
}