摘要: 第一种(懒汉,线程不安全): Java代码 public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { if (i 阅读全文
posted @ 2012-02-21 15:15 jason_xiao 阅读(153) 评论(0) 推荐(0) 编辑