Skip to content

Instantly share code, notes, and snippets.

@ShwetaChauhan18
Last active September 4, 2018 12:04
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 ShwetaChauhan18/6bee64125fc94b4b48416bfe1117db4c to your computer and use it in GitHub Desktop.
Save ShwetaChauhan18/6bee64125fc94b4b48416bfe1117db4c to your computer and use it in GitHub Desktop.
public class BillPughSingleton {
private BillPughSingleton(){}
private static class BillPughSingletonInnerClass{
private static final BillPughSingleton INSTANCE = new BillPughSingleton();
}
public static BillPughSingleton getInstance(){
return BillPughSingletonInnerClass.INSTANCE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment