世上本无难事,心以为难,斯乃真难。苟不存一难之见于心,则运用之术自出。
posted on 2008-02-22 10:26 和风细雨 阅读(1830) 评论(1) 编辑 收藏
public void printElements(){ K k = null; V v = null; Iterator<K> ite = null; if(null == map){ return; } ite = map.keySet().iterator(); while(ite.hasNext()){ k = ite.next(); v = map.get(k); print(k,v); } } public void print(K k,V v){ System.out.println("key = " + k + " value = " + v); } 回复 更多评论
Powered by: BlogJava Copyright © 和风细雨