KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test17


1 public class Test17 {
2
3     public static void main (String JavaDoc [] args){
4         Test17 t17 = new Test17();
5         t17.run();
6     }
7
8     public void run(){
9         class MyListener1 {
10             public void action(){
11                 System.out.println("Smile");
12             }
13         };
14         new MyListener1().action();
15     }
16 }
17
Popular Tags