// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Outer {
   private int outerv;
   public Outer() {
      outerv = 123;
   }
   public void print() {
      System.out.println(outerv);
   }
   public class Inner {
      private int innerv;
      public Inner() {
         innerv = outerv + 1;
      }
      public void print() {
         System.out.println(innerv);
      }

   }
   public static void main(String[] args) {
      Outer out = new Outer();
      out.print();
      Outer.Inner in = out.new Inner();
      in.print();
   }
}
