Untitled
public text v1 · immutablepublic class Singleton {
static public Singleton getInstance() {
return theInstance;
}
protected Singleton() {
//init
}
//some methods, fields
private static Singleton theInstance = new Singleton();
}