// This program will not compile. 

class Outer {
  int outer_x = 100;

  void test() {
    Inner inner = new Inner();
    inner.display();
  }

  // this is an innner class
  class Inner {
    int y = 10; // y is local to Inner
    void display() {
      System.out.println("display: outer_x = " + outer_x);
    }
  }

  void show_y() {
    System.out.println(y); // error, "y" is not known here!
  }
}

class InnerClassDemo2 {
  public static void main(String args[]) {
    Outer outer = new Outer();
    outer.test();
  }
}