How to create a java class Singleton in one second in Eclipse.
1. Open Eclipse.
2. Goto Window then Preferences.
3. Expand Java then Editor then Templates.
4. Create a new template for singleton class.
5. Fill in Name, Description, Context should be Java, check Automatically insert.
6. In pattern box add pattern as seen in the video.
7. Save it. Apply it.
8. Try it in any class you want to make singleton. Write what is written in name of template.
9. Done.
Thank You :)