Skip to content

Instantly share code, notes, and snippets.

Created January 21, 2016 18:46
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 anonymous/710cdf4140c9203bb263 to your computer and use it in GitHub Desktop.
Save anonymous/710cdf4140c9203bb263 to your computer and use it in GitHub Desktop.
public class Singleton {
private static final Singleton INSTANCE = new Singleton();
private Singleton() {}
public static Singleton getInstance() {
return INSTANCE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment