KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test50


1 public class Test50{
2     
3     public static void main(String JavaDoc [] args){
4         Test50 t50 = new Test50();
5         t50.run();
6     }
7
8     public void run(){
9         go(new Object JavaDoc(){
10             public String JavaDoc toString(){
11                 return "Jennifer";
12             }
13         });
14     }
15
16     public void go(Object JavaDoc o){
17         System.out.println(o);
18     }
19 }
20
Popular Tags