獲取所有系統屬性值的java代碼段:
Java代碼
Properties pros = System.getProperties(); Enumeration<?> names = pros.propertyNames(); while (names.hasMoreElements()) { String name = (String) names.nextElement(); System.out.println(name + "=" + System.getProperty(name)); }
查看本欄目