2016年6月21日
摘要: 第一种(懒汉,线程不安全): public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { if (instance 阅读全文
posted @ 2016-06-21 11:17 Snow〃冰激凌 阅读(380) 评论(0) 推荐(1) 编辑