标签:== on() singleton 单例 模式 return stat let vat
public class Singleton1 {
private static Singleton1 singleton = null;
private Singleton1(){}
public static Singleton1 getSingleton(){
if(singleton==null){
singleton= new Singleton1();
}
return singleton;
}
}
标签:== on() singleton 单例 模式 return stat let vat
原文地址:https://www.cnblogs.com/dwxblogs/p/10931299.html