Properties props = System.getProperties(); Iterator<Entry<Object, Object>> it = props.entrySet().iterator(); while(it.hasNext()) { Entry<Object, Object> ent = it.next(); System.out.println(ent.getKey() + ":" + ent.getValue()); }
时间: 2024-10-08 13:25:16