You are viewing a single comment's thread. Return to all comments →
public String str; public static Singleton singleton = null; private Singleton() { } static Singleton getSingleInstance() { if (singleton == null) singleton = new Singleton(); return singleton; }
Java Singleton Pattern
You are viewing a single comment's thread. Return to all comments →