475
技術社區[雲棲]
java.lang.Runtime中的單例模式
public class Runtime {private static Runtime currentRuntime = new Runtime();
public static Runtime getRuntime() {
return currentRuntime;
}
private Runtime() { }
}
最後更新:2017-04-03 12:56:06
475
技術社區[雲棲]
}
最後更新:2017-04-03 12:56:06