public class Test
{
public static void main(String[] args)
{
A a = new A();
A.B b = new A.B(2);
System.out.println(b.getFirst());
a.returnB();
System.out.println(b.getFirst());
System.out.println(a.second);
System.out.println(a.third);
}
}
class A
{
private static int first;
private static int second;
public int third;
public static class B
{
public B(int a)
{
first = a;