?? newfeaturehashmap.java
字號:
package ex;import java.util.HashMap;import java.util.Iterator;public class NewFeatureHashMap { public static void main(String[] args) { HashMap<String, Integer> hm = new HashMap<String, Integer>(); hm.put("abc", new Integer(111)); hm.put("def", new Integer(222)); Iterator<String> it = hm.keySet().iterator(); while (it.hasNext()) { String strKey = it.next(); int iValue = hm.get(strKey).intValue(); System.out.println(strKey + "," + iValue); } } }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -