2017年12月13日

摘要: public class Singleton { private Singleton(){}//私有化构造器 private static Singleton instance = null; //类的内部创建对象 public static Singleton getInstance(){ //暴露公共的get方法 if(inst... 阅读全文

posted @ 2017-12-13 19:39 冠军33 阅读(214) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3