You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
375 B

public class Jb24_Single
{
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⣺ȷ<E2A3BA><C8B7>һ<EFBFBD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4>еĶ<D0B5><C4B6><EFBFBD>Ψһ<CEA8><D2BB>
public static void main(String[] args)
{
//Single sDemo = Single.getInstance();
Single sDemo = Single.s; //<2F><>ͬ<EFBFBD><CDAC>Single sDemo = Single.getInstance();
}
}
class Single
{
static Single s = new single();
private Single(){};
public static Single getInstance()
{
return s;
}
}