又是一个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();
    }
}
程序运行结果: hello world! 

posted on 2009-04-19 11:22 胡鹏 阅读(177) 评论(0)  编辑  收藏 所属分类: java基础


只有注册用户登录后才能发表评论。


网站导航:
 

导航

<2009年4月>
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

统计

常用链接

留言簿(3)

随笔分类

随笔档案

agile

搜索

最新评论

阅读排行榜

评论排行榜