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