public static Singleton getInstance() {
if (instance == null) {
synchronized (Singleton.class) {
if (instance == null) {
instance = new Singleton();
}
}
}
return instance;
}
}
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx