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