KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Test51


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