为什么在AEinsam/HabReader中使用此代码:
private static User instance = null; // line:25
public static User getInstance() {
if (instance == null)
instance = new User();
return instance;
}
// line:31
没有这种方法我可以上课吗?
为什么在AEinsam/HabReader中使用此代码:
private static User instance = null; // line:25
public static User getInstance() {
if (instance == null)
instance = new User();
return instance;
}
// line:31
没有这种方法我可以上课吗?