摘要:
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)
posted @ 2017-12-13 19:39 冠军33 阅读(214) 评论(0) 推荐(0)