「java」クラスのインスタンスgetInstance()の書き方

Javaコード:
private static DepartUtil instance;
private DepartUtil() {
}
public static DepartUtil getInstance() {
if (instance == null) {
instance = new DepartUtil();
}
return instance;
}

Java

Posted by arkgame