@@ -0,0 +1,243 @@
+public class SingletonTest %7B%0A%09static SingletonTest instance;%0A%0A%09public static SingletonTest getInstance() %7B%0A%09%09synchronized (SingletonTest.class) %7B%0A%09%09%09if (instance == null) %7B%0A%09%09%09%09instance = new SingletonTest();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return instance;%0A%09%7D%0A%0A%7D%0A

add singletonTest.java