摘要: 第一种(懒汉,线程不安全): Java代码 public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { if (i 阅读全文
posted @ 2017-06-17 08:14 暗渡陈仓xy 阅读(187) 评论(0) 推荐(0) 编辑