咸咸海风

https://github.com/xianxianhaifeng

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

2021年1月15日

摘要: 我们第一次写的单例模式是下面这样的: 1 public class Singleton { 2 private static Singleton instance = null; 3 public static Singleton getInstance() { 4 if(null == insta 阅读全文
posted @ 2021-01-15 09:46 咸咸海风 阅读(127) 评论(0) 推荐(0) 编辑