标签:
public class Singleton { private static final Singleton singleton = new Singleton(); private Singleton(){ } public Singleton getInstance(){ return singleton; }}
public class Singleton {
private static final Singleton singleton = new Singleton();
private Singleton(){
}
public Singleton getInstance(){
return singleton;
java单例模式
原文地址:http://www.cnblogs.com/bishion/p/4924497.html