Hi,
I really appreciate if anybody can explain what's going on in getInstance method.
public class MLogin
{
private static MLogin instance = null;
public static MLogin getInstance (String address) throws exception
{
if (instance == null)
synchronized(Class("MLogin"))
{
if(instance == null)
instance = new MLogin();
instance.setValue(address);
}
}
public void setValue(address)
{
:
:
}
}
I really appreciate if anybody can explain what's going on in getInstance method.
public class MLogin
{
private static MLogin instance = null;
public static MLogin getInstance (String address) throws exception
{
if (instance == null)
synchronized(Class("MLogin"))
{
if(instance == null)
instance = new MLogin();
instance.setValue(address);
}
}
public void setValue(address)
{
:
:
}
}