摘要: 懒汉式,线程不安全 public class Singleton { private static Singleton instance; private Singleton (){} public static Singleton getInstance() { if (instance == n 阅读全文
posted @ 2020-06-28 17:21 chdchd 阅读(118) 评论(0) 推荐(0) 编辑