/**
* 饿汉模式
* @author Administrator
*
*/
public class Sigon02 {
private static Sigon02 s = new Sigon02();
public static Sigon02 getIstall(){
return s;
}
* 饿汉模式
* @author Administrator
*
*/
public class Sigon02 {
private static Sigon02 s = new Sigon02();
public static Sigon02 getIstall(){
return s;
}
private Sigon02(){}
/**
* 懒汉模式
* @author Administrator
*
*/
public class Sigon {
private Sigon(){}
private static Sigon s;
public static Sigon getInstall(){
if(s==null){
s = new Sigon();
}
return s;
}