import java.util.*;
public class Property {
public static void main(String[] args) {
System.out.println(new Date());
Properties p = System.getProperties(); //好像下面根本就没用到属性
p.list(System.out); //下面也没出? p呀??
System.out.println("--- Memory Usage:");
Runtime rt = Runtime.getRuntime();
System.out.println("Total Memory = "
+ rt.totalMemory()
+ " Free Memory = "
+ rt.freeMemory()); try {
Thread.currentThread().sleep(5 * 1000);
} catch(InterruptedException e) {}
}
}
public class Property {
public static void main(String[] args) {
System.out.println(new Date());
Properties p = System.getProperties(); //好像下面根本就没用到属性
p.list(System.out); //下面也没出? p呀??
System.out.println("--- Memory Usage:");
Runtime rt = Runtime.getRuntime();
System.out.println("Total Memory = "
+ rt.totalMemory()
+ " Free Memory = "
+ rt.freeMemory()); try {
Thread.currentThread().sleep(5 * 1000);
} catch(InterruptedException e) {}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货