1 // Class update_outer 2 // Generated on Thu Nov 18 21:37:21 UTC 1999 3 // 4 5 class update_outer { 6 7 private String foo; 8 9 class update_outer_inner { test()10 void test () { 11 foo += " M$"; 12 System.out.println ("foo=`"+foo+"'"); 13 } 14 15 16 } foo()17 void foo () 18 { 19 foo = "780"; 20 update_outer_inner inn = this.new update_outer_inner (); 21 inn.test (); 22 } main(String[] arg)23 public static void main (String[] arg) 24 { 25 System.out.println ("Testing class `update_outer'..."); 26 new update_outer().foo (); 27 } 28 } 29