KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test12


1 public class Test12 {
2
3     
4     public static void main (String JavaDoc [] args){
5         Test12 t = new Test12();
6         t.run();
7     }
8
9     public void run(){
10         TestInner1 t = new TestInner1();
11         t.run();
12     }
13     
14     class TestInner1 {
15         public void run(){
16             System.out.println("Smile: Inner1");
17             TestInner2 t2 = new TestInner2();
18             t2.run();
19         }
20
21         class TestInner2 {
22             public void run(){
23                 System.out.println("Smile: Inner2");
24             }
25         
26         }
27         
28         
29         
30     }
31
32 }
33
Popular Tags