又是一個hello world
簡單的hello world hoho:
public class Null {
public static void greet(){
System.out.println("hello world!");
}
public static void main(String[] args) {
((Null)null).greet();
}
}
public static void greet(){
System.out.println("hello world!");
}
public static void main(String[] args) {
((Null)null).greet();
}
}
程序運(yùn)行結(jié)果: hello world!
posted on 2009-04-19 11:22 胡鵬 閱讀(194) 評論(0) 編輯 收藏 所屬分類: java基礎(chǔ)