
public class Singleton 
{
	private static Singleton theInstance;
	
	//campi privati
	
	private Singleton(){
		
		//costruttore con inizializzaione
	}
	
	public Singleton getInstance(){
		if (theInstance == null) {
			
			theInstance = new Singleton();
		}
		return theInstance;
	}
}	
