map遍历时,使用key找value的好处是遍历速度最快
Map hashMap = new HashMap<>(); for (Integer key : hashMap.keySet()) { String value = hashMap.get(key); Log.i(TAG, "key: " + key +"value: "+value); }
标签:div bsp value span 关于 gpo new string blog
Map hashMap = new HashMap<>(); for (Integer key : hashMap.keySet()) { String value = hashMap.get(key); Log.i(TAG, "key: " + key +"value: "+value); }
标签:div bsp value span 关于 gpo new string blog
原文地址:https://www.cnblogs.com/linhongwenBlog/p/8697768.html