📄 testhashmap.java
字号:
package com.softeem.jbs;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Properties;
public class TestHashMap {
public static void main(String[] args) {
Properties props = System.getProperties();
HashMap map = new HashMap();
Enumeration e = props.propertyNames();
while (e.hasMoreElements()) {
String key = (String) e.nextElement();
String value = props.getProperty(key);
// System.out.println(key + "=" + value);
map.put(key, value);
System.out.println(map.get(key));
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -