摘要: //懒汉模式public class Singleton { private static Singleton instance; /** * 私有化构造方法 */ private Singleton(){ } public static Singleton getInstance(){ if (instance... 阅读全文
posted @ 2017-02-14 08:32 Fly_Coding 阅读(137) 评论(0) 推荐(0) 编辑