@@ -0,0 +1,447 @@
+package com.muxter.SingletonPattern;%0A%0A/**%0A * Created by matao on 08/02/2017.%0A */%0Apublic class Singleton %7B%0A    private volatile static Singleton instance;%0A%0A    private Singleton() %7B%0A    %7D%0A%0A    public static Singleton getInstance() %7B%0A        if (instance == null) %7B%0A            synchronized (Singleton.class) %7B%0A                if (instance == null) %7B%0A                    instance = new Singleton();%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Add singleton pattern