package xFTest;
public class TestSingleton {
private TestSingleton() {
}
private static volatile TestSingleton instance = null;
public static TestSingleton getInstance() {
if (instance == null) {
instance = new TestSingleton();
}
return instance;
}
public void printInfo() {
int X = 0;
int Y = 1;
X = X^Y;
Y = Y^X;
X = X^Y;
System.out.println("您要的值为X="+X+"----Y="+Y);
}
}
最近下载更多
最近浏览更多
1waxzsq212345 LV2
2024年1月16日
interface LV22
2023年7月9日
xv123456 LV1
2023年6月1日
微信网友_6040315240812544 LV8
2022年10月31日
idm_Sure LV3
2022年5月13日
微信网友_5937326340837376
2022年4月29日
暂无贡献等级
2898369623 LV1
2021年10月12日
huaua7676 LV30
2021年9月2日
mengfanyun LV9
2021年6月18日
20210119yiyi
2021年1月19日
暂无贡献等级

