- public static void main(String[] args) {
- Properties properties = System.getProperties();
- Set<Map.Entry<Object, Object>> ps = properties.entrySet();
- for (Map.Entry<Object, Object> p : ps) {
- System.out.println(p.getKey() + " = " + p.getValue());
- }
- System.out.println(properties.getProperty("sun.arch.data.model"));
- }
复制代码 就是"sun.arch.data.model"这个键的值。 |