public class SingleTon{
private static SingleTon instance=null;
public static synchronized SingleTon getInstance(){
if(instance==null){
instance=new SingleTon();
}
return instance;
}
}
public class SingleTon{
private static SingleTon instance=null;
public static synchronized SingleTon getInstance(){
if(instance==null){
instance=new SingleTon();
}
return instance;
}
}