public class Singleton { //Fields private static Singleton instance; //Standard default Constructor protected Singleton(){}; //Static method for creating the single instance of the Constructor public static Singleton Instance(){ //initialize if not already done if(instance == null) instance = new Singleton(); //return the initialized instance of the Singleton Class return instance; } }