KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test32


1 public class Test32 {
2
3     public static void main(String JavaDoc [] args){
4         Test32 t = new Test32();
5         t.run();
6     }
7
8     public void run (){
9         Inner in = new Inner();
10         in.run();
11     }
12
13     class Inner {
14         
15         public void run(){
16             class Helper2 {
17                 public void action(){
18                     System.out.println("Smile");
19                 }
20             };
21             new Helper2().action();
22         }
23     }
24 }
25
Popular Tags