Created
March 19, 2017 12:49
-
-
Save fermopili/230407fc4f25d7cf60926124c7e7e6aa to your computer and use it in GitHub Desktop.
com.javarush.task.task14.task1421
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Singleton | |
{ | |
private static Singleton instance=null; | |
public static Singleton getInstance() | |
{if(instance==null) | |
instance=new Singleton(); | |
return instance; | |
} | |
private Singleton() | |
{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment