📄 totalmemoryexoloreritem.java
字号:
package SOMA.utility;
import java.io.*;
import java.util.*;
/** Restituisce la <B>MEMORIA TOTALE</B>.
*
* @author Livio Profiri
*/
public class TotalMemoryExolorerItem extends SOMA.explorer.ExplorerItem
{
public TotalMemoryExolorerItem()
{
super( "Returns the TOTAL amount of memory in the Java Virtual Machine." );
}
public Object Execute( Collection Parameters, PrintStream out )
{
long mem = Runtime.getRuntime().totalMemory();
out.println( "The TOTAL memory is: " + mem );
return new Long( mem );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -