获取所有系统属性值的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)); }
查察本栏目