Skip to content

Instantly share code, notes, and snippets.

@jaspercastillo
Last active August 29, 2015 14:08
Show Gist options
  • Save jaspercastillo/41e25426a3a4168f5bc9 to your computer and use it in GitHub Desktop.
Save jaspercastillo/41e25426a3a4168f5bc9 to your computer and use it in GitHub Desktop.
package com.quillbytes.scratch.singletons;
import static java.lang.System.out;
public class SingletonStatic {
private static final SingletonStatic INSTANCE = new SingletonStatic();
private SingletonStatic() {
out.println("SingletonStatic instantiated.");
}
public static SingletonStatic getInstance() {
return INSTANCE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment