public class MainClass { public static void main(String[] argv) { } } class MyClass { private int x; public MyClass() { InnerClass innerClass = new InnerClass(); innerClass.print(); } class InnerClass { public void print() { System.out.println(x); } } }