Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SingleInstance {
- private static class InstanceHolder {
- public static final SingleInstance instance = new SingleInstance();
- }
- public static SingleInstance getInstance() {
- return InstanceHolder.instance;
- }
- }
Add Comment
Please, Sign In to add comment