Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created March 19, 2017 12:49
Show Gist options
  • Save fermopili/230407fc4f25d7cf60926124c7e7e6aa to your computer and use it in GitHub Desktop.
Save fermopili/230407fc4f25d7cf60926124c7e7e6aa to your computer and use it in GitHub Desktop.
com.javarush.task.task14.task1421
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