Un piccolo esempio di implementazione di Singleton, just coded for Angela :-)
public class VariablesContainerSingleton
{
// Pointer to class instance
private static VariablesContainerSingleton instance;
// Private constructor. No need to use it from outside :-)
private VariablesContainerSingleton() {};
/* BEGIN VARIABLES */
public int numericValue = 0;
public String stringValue = "";
/* END VARIABLES */
/**
* Create a unique instance of this class
* If not present (null), it creates a new inst...