KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test58


1 public class Test58{
2
3     public static void main(String JavaDoc [] args){
4         Test58 t58 = new Test58();
5         t58.run();
6     }
7
8     public void run(){
9         class MyClass {
10             public void run(){
11                 class MyClass2{
12                     public void run(){
13                         System.out.println("MyClass2");
14                     }
15                 };
16                 MyClass2 mc2 = new MyClass2();
17                 mc2.run();
18                 System.out.println("MyClass");
19             }
20         };
21         MyClass mc = new MyClass();
22         mc.run();
23     }
24 }
25
Popular Tags