Pattern Singleton

Send Snippet To: Save this snippet to Code Collector Pro -- view all laletin's snippets
language: Java
license: Other

Code for Snippet:

public class Singleton2 {
    private static Singleton2 instance;
    private Singleton2() {
    public static Singleton2 getInsance() {
        if (instance == null) {
            instance = new Singleton2();
        return instance;
comments powered by Disqus


Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 42
Date Added: 2017-08-07 05:02:36
Last Modified: 2017-08-19 15:16:01

Web Analytics