复制代码
- //Property.java
- importjava.util.*;
- publicclassProperty{
- publicstaticvoidmain(String[]args){
- System.out.println(newDate());
- Propertiesp=System.getProperties();
- p.list(System.out);
- System.out.println("---MemoryUsage:");
- Runtimert=Runtime.getRuntime();
- System.out.println("TotalMemory="
- +rt.totalMemory()
- +"FreeMemory="
- +rt.freeMemory());
- }
- }
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |