class Single
{
private static Single s = new Single();
private Single(){}
public static Single getSingle()
{
return s;
}
}
class Single
{
private static Single s = null;
private Single(){}
public static /*synchronized*/ Sinlge getSingle()
{
if(s==null)
s = new Single();
return s;
}
}