public class Main { private int number = 12; public Main() { InnerClass inner = new InnerClass(); inner.printNumber(); } class InnerClass { public void printNumber() { System.out.println(Main.this.number); } } public static void main(String[] args) { new Main(); } }