Main Method:
package staticinnerclass;
public class Main
{
public static void main(String[] args)
{
System.out.println("A data: "+A.a);
A.B obj = new A.B(); ///create object of inner class
System.out.println("B data: "+obj.b);
}
}
Class A:
package staticinnerclass;
public class A
{
static int a = 5;
static class B
{
static int b =10;
}
}
Output
A data= 5
B data= 10
3 previous comments
<a href=http://bestcialis20mg.com/>cheapest place to buy cialis</a> One way to further investigate to see where your at and explore your symptoms is through our assessment
Retin A For Sale <a href=http://iverstromectol.com/>stromectol online canada</a> Deltasone Over The Counter
Rqotvm [url=https://oscialipop.com]Cialis[/url] Propecia Vergessen Einzunehmen Fziejn <a href=https://oscialipop.com>Cialis</a> Medicine From Mexico Crgpnr https://oscialipop.com - cialis for sale online Gjzzlo Baclofene Methadone