Skip to content

Instantly share code, notes, and snippets.

@ccpy
Created January 23, 2015 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ccpy/499f234ae0588f6abbab to your computer and use it in GitHub Desktop.
Save ccpy/499f234ae0588f6abbab to your computer and use it in GitHub Desktop.
public Singleton {
private Singletn(){}
private static Singleton INSTANCE = new Singleton();
public static Singleton newInstance(){
return INSTANCE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment