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