// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class X {
    private static X instance;
    public static synchronized X getInstance() {
        if(instance == null) {
            instance = new X();
        }
        return instance;
    }
    private X() {
    }
}
