📄 runtime.java
字号:
package java.lang;/** * Minimalist version of the standard Java Runtime class. * @author Paul Andrews */public class Runtime { private static Runtime singleton; /** * Private so no one but us can create one. */ private Runtime() { } /** * Get the single instance of us. */ public static Runtime getRuntime() { if (singleton == null) { singleton = new Runtime(); } return singleton; } /** * Return the amount of free memory.on the heap * * @return the free memory in bytes */ public native long freeMemory(); /** * Return the size of the heap in bytes. * * @return the free memory in bytes */ public native long totalMemory();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -