Java/Java_Singleton_Pattern.java
<reponame>PreethiSamanthaBennet/HackerRank_Solutionsimport java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
import java.lang.reflect.*;

class Singleton{
    public String str;

    private Singleton(){
    
    }

    public static Singleton getSingleInstance(){
        return new Singleton();
    }
}
