Java中Map的 entrySet() 详解以及用法(四种遍历map的方式)

    Java中Map的 entrySet() 详解以及用法(四种遍历map的方式)

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
                </div>
            </span>
                    </div>
                                                    <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-3019150162.css">
                                        <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/ck_htmledit_views-3019150162.css">
                <div class="htmledit_views" id="content_views">
                                            <h3><a name="t0"></a><strong>Entry</strong></h3>
    

    由于Map中存放的元素均为键值对,故每一个键值对必然存在一个映射关系。 
    Map中采用Entry内部类来表示一个映射项,映射项包含Key和Value (我们总说键值对键值对, 每一个键值对也就是一个Entry)
    Map.Entry里面包含getKey()和getValue()方法

    
     
    1. Iterator<Map.Entry<Integer, Integer>> it=map.entrySet().iterator();
    2. while(it.hasNext()) {
    3. Map.Entry<Integer,Integer> entry=it.next();
    4. int key=entry.getKey();
    5. int value=entry.getValue();
    6. System. out.println(key+ " "+ value);
    7. }

    entrySet

    entrySet是 java中 键-值 对的集合,Set里面的类型是Map.Entry,一般可以通过map.entrySet()得到。

    • entrySet实现了Set接口,里面存放的是键值对。一个K对应一个V。

    用来遍历map的一种方法。

    
     
    1. Set< Map.Entry< String, String>> entryseSet=map.entrySet();
    2. for ( Map.Entry< String, String> entry:entryseSet) {
    3. System.out.println(entry.getKey()+ ","+entry.getValue());
    4. }

    即通过getKey()得到K,getValue得到V。

    keySet

    还有一种是keySet, keySet是键的集合,Set里面的类型即key的类型

    
     
    1. Set< String> set = map.keySet();
    2. for ( String s: set) {
    3. System.out.println(s+ ","+map. get(s));
    4. }

    四种遍历Map方式:

    
     
    1. public static void main( String[] args) {
    2. Map< String, String> map = new HashMap< String, String>();
    3. map.put( "1", "value1");
    4. map.put( "2", "value2");
    5. map.put( "3", "value3");
    6. //第一种:普遍使用,二次取值
    7. System.out. println( "通过Map.keySet遍历key和value:");
    8. for ( String key : map.keySet()) {
    9. System.out. println( "key= "+ key + " and value= " + map. get(key));
    10. }
    11. //第二种
    12. System.out. println( "通过Map.entrySet使用iterator遍历key和value:");
    13. Iterator< Map. Entry< String, String>> it = map.entrySet().iterator();
    14. while (it.hasNext()) {
    15. Map. Entry< String, String> entry = it.next();
    16. System.out. println( "key= " + entry.getKey() + " and value= " + entry.getValue());
    17. }
    18. //第三种:推荐,尤其是容量大时
    19. System.out. println( "通过Map.entrySet遍历key和value");
    20. for ( Map. Entry< String, String> entry : map.entrySet()) {
    21. System.out. println( "key= " + entry.getKey() + " and value= " + entry.getValue());
    22. }
    23. //第四种
    24. System.out. println( "通过Map.values()遍历所有的value,但不能遍历key");
    25. for ( String v : map.values()) {
    26. System.out. println( "value= " + v);
    27. }
    28. }

     

            <div class="hide-article-box hide-article-pos text-center">
            <a class="btn-readmore" data-report-view="{&quot;mod&quot;:&quot;popu_376&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;,&quot;strategy&quot;:&quot;readmore&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_376&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;,&quot;strategy&quot;:&quot;readmore&quot;}">
                展开阅读全文
                <svg class="icon chevrondown" aria-hidden="true">
                    <use xlink:href="#csdnc-chevrondown"></use>
                </svg>
            </a>
        </div>
            <div id="dmp_ad_58"><div id="kp_box_58" data-pid="58" data-report-view="{&quot;mod&quot;:&quot;kp_popu_58-402&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_58-402&quot;,&quot;keyword&quot;:&quot;&quot;}"><div style="width:100%;background:#fff;border:3px solid #fff;padding:16px 0px 0px 0px;">
    
    <div class="comment-edit-box d-flex">
    	<a id="commentsedit"></a>
    	<div class="user-img">
    		<a href="javascript:void(0);" target="_blank" rel="noopener">
    			<img class="show_loginbox" src="//g.csdnimg.cn/static/user-img/anonymous-User-img.png">
    		</a>
    	</div>
    	<form id="commentform">
    		<input type="hidden" id="comment_replyId">
    		<textarea class="comment-content" name="comment_content" id="comment_content" placeholder="想对作者说点什么"></textarea>
    		<div class="opt-box"> <!-- d-flex -->
    			<div id="ubbtools" class="add_code">
    				<a href="#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
    			</div>
    			<input type="hidden" id="comment_replyId" name="comment_replyId">
    			<input type="hidden" id="article_id" name="article_id" value="85122343">
    			<input type="hidden" id="comment_userId" name="comment_userId" value="">
    			<input type="hidden" id="commentId" name="commentId" value="">
    			<div style="display: none;" class="csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_384&quot;,&quot;dest&quot;:&quot;&quot;}"><a href="#" target="_blank" class="comment_area_btn" rel="noopener">发表评论</a></div>
    			<div class="dropdown" id="myDrap">
    				<a class="dropdown-face d-flex align-items-center" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
    				<div class="txt-selected text-truncate">添加代码片</div>
    				<svg class="icon d-block" aria-hidden="true">
    					<use xlink:href="#csdnc-triangledown"></use>
    				</svg>
    				</a>
    				<ul class="dropdown-menu" id="commentCode" aria-labelledby="drop4">
    					<li><a data-code="html">HTML/XML</a></li>
    					<li><a data-code="objc">objective-c</a></li>
    					<li><a data-code="ruby">Ruby</a></li>
    					<li><a data-code="php">PHP</a></li>
    					<li><a data-code="csharp">C</a></li>
    					<li><a data-code="cpp">C++</a></li>
    					<li><a data-code="javascript">JavaScript</a></li>
    					<li><a data-code="python">Python</a></li>
    					<li><a data-code="java">Java</a></li>
    					<li><a data-code="css">CSS</a></li>
    					<li><a data-code="sql">SQL</a></li>
    					<li><a data-code="plain">其它</a></li>
    				</ul>
    			</div>  
    			<div class="right-box">
    				<span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
    				<input type="button" class="btn btn-sm btn-cancel d-none" value="取消回复">
    				<input type="submit" class="btn btn-sm btn-red btn-comment" value="发表评论">
    			</div>
    		</div>
    	</form>
    </div>
    
    	<div class="comment-list-container">
    	<a id="comments"></a>
    	<div class="comment-list-box" style="display: none;">
    	</div>
    	<div id="commentPage" class="pagination-box d-none" style="display: none;"></div>
    	
    </div>
    

    HashMap遍历的三种方式entrySet()和keySet() 还有Java8的foreach

    02-23 阅读数 5168

    第一种:Mapmap=newHashMap();Iteratoriter=map.entrySet().iterator();while(iter.hasNext()){   Map.Entryent... 博文 来自: gaojiajie333的博客

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59" data-report-view="{&quot;mod&quot;:&quot;kp_popu_59-517&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_59-517&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129478_673" id="QIHOO__WEB__SO__1567582129478_673" style="display:block;margin:0;padding:0;border:none;width:852px;height:52px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129478_673-info" style="zoom:1"><info-div class="QIHOO__WEB__SO__1567582129478_673 singleImage clk" data-href="https://g1xd.mediav.com/s?type=2&amp;r=20&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366cd7a15c2b&amp;price=AAAAAF1vZ7MAAAAAAAE1uPkvEoIi+jZpgBIqtQ==&amp;finfo=DAABCAABAAAACQgAAgAAABwEAAM/M22tU9mpsQAIAAIAAAADCgADBY/hfvi9XdMIAAQAAAAdBgAGG4sGAAoAAAgADgAAACAKAA8AAAAAAAGGoQA&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaAy5iBpe3IBRwWgbPQ1eSFzK7XARUAAAA&amp;uai=FaixkwIlAhUEFpKWx//EmeyPCxXyCCXi+PekAiUAFRoUABwWjMq/g/mTjPU1FQAAAA&amp;ubi=FbSxPhXu4soCFaCKuhcViOzmWBUGFSIWuO+OwBYWkpbc5s7f8I8LNAIWsOAQJQYV47+ClAUVngEVACQUFrSxPgA&amp;clickid=0&amp;cpx=__OFFSET_X__&amp;cpy=__OFFSET_Y__&amp;cs=__EVENT_TIME_START__&amp;ce=__EVENT_TIME_END__&amp;ldtype=2&amp;csign2=OpO4Um1u22-=&amp;url=http%3A%2F%2Fy.code.17tanwan.com%2Fhtmlcode%2F20162.html" data-pv="https://g1xd.mediav.com/s?type=1&amp;r=20&amp;tid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;finfo=DAABCAABAAAACQgAAgAAABwEAAM/M22tU9mpsQAIAAIAAAADCgADBY/hfvi9XdMIAAQAAAAdBgAGG4sGAAoAAAgADgAAACAKAA8AAAAAAAGGoQA&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366cd7a15c2b&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaAy5iBpe3IBRwWgbPQ1eSFzK7XARUAAAA&amp;uai=FaixkwIlAhUEFpKWx//EmeyPCxXyCCXi+PekAiUAFRoUABwWjMq/g/mTjPU1FQAAAA&amp;ubi=FbSxPhXu4soCFaCKuhcViOzmWBUGFSIWuO+OwBYWkpbc5s7f8I8LNAIWsOAQJQYV47+ClAUVngEVACQUFrSxPgA&amp;ds=1&amp;price=AAAAAF1vZ7MAAAAAAAE1uPkvEoIi+jZpgBIqtQ==,https://max-l.mediav.com/rtb?type=2&amp;ver=1&amp;v=CGQSEDEzOTIzNjZjZDdhMTVjMmIY1NiJASCisEUoAWIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTmIAQA&amp;k=ByDUhgAAAAA=&amp;w=AAAAAF1vZ7MAAAAAAAE14OROIM_WuidRlWGwFA&amp;i=cfUj0a6E19h4&amp;exp=BQBECQBEAQJEFgJEEABDIwBD&amp;z=1" data-clk="https://max-l.mediav.com/rtb?type=3&amp;ver=1&amp;v=CGQSEDEzOTIzNjZjZDdhMTVjMmIY1NiJASCisEUoAWIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTlwAA&amp;k=XL9ZkQAAAAA=&amp;i=cfUj0a6E19h4&amp;exp=BQBECQBEAQJEFgJEEABDIwBD&amp;x=__OFFSET_X__&amp;y=__OFFSET_Y__&amp;st=__EVENT_TIME_START__&amp;et=__EVENT_TIME_END__&amp;adw=__ADSPACE_W__&amp;adh=__ADSPACE_H__&amp;tc=&amp;turl=">
    <info-div class="wrap">
        <info-div class="singleImage-img singleImage-img-left">
            <info-div class="img" style="background-image:url(https://s3m.mediav.com/galileo/511066-fde5d9e3e394ad84047566144fa5297b.gif)"><info-div class="ads-tag"></info-div></info-div>
        </info-div>
        <info-div class="singleImage-body singleImage-body-left">
            <info-div class="singleImage-title">如果你连一毛钱都不想充,那就玩这款游戏,开局0元VIP</info-div>
            <info-div class="singleImage-desc">龙腾传世 · 顶新</info-div>
        </info-div>
    

    HashMapentrySet 生成过程

    04-20

    原来以为entrySet是随着put操作一块更新的,后来发现是调用entrySet()方法时才生成,但是在调试的时候,竟然没发现生成entrySet的代码,求解。 下面是证明的代码,不直是否有问题。 论坛

    遍历map四种方法及Map.entry详解 - gm371200587的博客 - CSDN博客

    7-22

    java Map遍历Map四种方法及Map.Entry详解 - Darry..._CSDN博客

    8-31

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60" data-report-view="{&quot;mod&quot;:&quot;kp_popu_60-43&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_60-43&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129483_4" id="QIHOO__WEB__SO__1567582129483_4" style="display:block;margin:0;padding:0;border:none;width:900px;height:84px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129483_4-info" style="zoom:1"><info-div class="QIHOO__WEB__SO__1567582129483_4 singleImage clk" data-href="https://g1xd.mediav.com/s?type=2&amp;r=20&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366d34f51666&amp;price=AAAAAF1vZ7QAAAAAAAFgOF1LDaVvgQPr/QDTzA==&amp;finfo=DAABCAABAAAAEAgAAgAAABEEAAM/P+x8UaeOLwAIAAIAAAADCgADBoorZeue5TcIAAQAAAAgBgAGLbcGAAoAAAgADgAAADMKAA8AAAAAAAJxAAA&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaA1JKCpe3IBRwW59mSoayw+LwvFQAAAA&amp;uai=FeTGlAIlAhUEFpKa3+Wgk5GKDRXyCCXjvvT9DyUAFRoUABwWi4P+mIDsnPaTARUAAAA&amp;ubi=FZLvUxWGw9ICFdKO3BcVzr3JWRUEFSIWuKPOpRcWkpr0zKrZlYoNNAIWqMAQJQYVzcWiXBXOAhUANur88IWrxaPccQA&amp;clickid=0&amp;cpx=__OFFSET_X__&amp;cpy=__OFFSET_Y__&amp;cs=__EVENT_TIME_START__&amp;ce=__EVENT_TIME_END__&amp;csign2=2b99DEdhwdY=&amp;url=http%3A%2F%2Fwww.snjttoto.com.cn%2Fproduct%2Fcategories.html" data-pv="https://g1xd.mediav.com/s?type=1&amp;r=20&amp;tid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;finfo=DAABCAABAAAAEAgAAgAAABEEAAM/P+x8UaeOLwAIAAIAAAADCgADBoorZeue5TcIAAQAAAAgBgAGLbcGAAoAAAgADgAAADMKAA8AAAAAAAJxAAA&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366d34f51666&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaA1JKCpe3IBRwW59mSoayw+LwvFQAAAA&amp;uai=FeTGlAIlAhUEFpKa3+Wgk5GKDRXyCCXjvvT9DyUAFRoUABwWi4P+mIDsnPaTARUAAAA&amp;ubi=FZLvUxWGw9ICFdKO3BcVzr3JWRUEFSIWuKPOpRcWkpr0zKrZlYoNNAIWqMAQJQYVzcWiXBXOAhUANur88IWrxaPccQA&amp;ds=1&amp;price=AAAAAF1vZ7QAAAAAAAFgOF1LDaVvgQPr/QDTzA==,https://max-l.mediav.com/rtb?type=2&amp;ver=1&amp;v=CGQSEDEzOTIzNjZkMzRmNTE2NjYYsqOKASCisEUoAWIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTmIAQA&amp;k=oooQ/QAAAAA=&amp;w=AAAAAF1vZ7QAAAAAAAFgfxr6sq4mNZeZ9GqQSg&amp;i=8HxiRVoE19hK&amp;exp=BQBECQBECQFEAQJEEABDIwBD&amp;z=1" data-clk="https://max-l.mediav.com/rtb?type=3&amp;ver=1&amp;v=CGQSEDEzOTIzNjZkMzRmNTE2NjYYsqOKASCisEUoAWIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTlwAA&amp;k=S8SuTwAAAAA=&amp;i=8HxiRVoE19hK&amp;exp=BQBECQBECQFEAQJEEABDIwBD&amp;x=__OFFSET_X__&amp;y=__OFFSET_Y__&amp;st=__EVENT_TIME_START__&amp;et=__EVENT_TIME_END__&amp;adw=__ADSPACE_W__&amp;adh=__ADSPACE_H__&amp;tc=&amp;turl=">
    <info-div class="wrap">
        <info-div class="singleImage-img singleImage-img-left">
            <info-div class="img" style="background-image:url(https://p1.ssl.qhimgs3.com/t0138d840f4e139194d.jpg)"><info-div class="ads-tag"></info-div></info-div>
        </info-div>
        <info-div class="singleImage-body singleImage-body-left">
            <info-div class="singleImage-title">买卫浴产品-找上海桑诺-400-720-8198</info-div>
            <info-div class="singleImage-desc">上海桑诺 · 顶新</info-div>
        </info-div>
    

    java中另一种遍历Map方式: Map.Entry 和 Map.entrySet()

    4-8

    Map四种遍历方式详解 - qq_37272886的博客 - CSDN博客

    7-11

    		<div class="recommend-item-box blog-expert-recommend-box" style="display: block;">
    		<div class="d-flex">
    			<div class="blog-expert-recommend">
    				<div class="blog-expert">
    					<div class="blog-expert-flexbox" data-report-view="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/gaojiajie333" target="_blank"><img src="https://avatar.csdn.net/5/4/5/3_gaojiajie333.jpg" alt="gaojiajie333" title="gaojiajie333"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="gaojiajie333" data-nick="gaojiajie333">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/gaojiajie333" target="_blank"><h5 class="oneline" title="gaojiajie333">gaojiajie333</h5></a></span>  <p></p><p class="article-num" title="17篇文章"> 17篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/gm371200587" target="_blank"><img src="https://avatar.csdn.net/2/0/1/3_gm371200587.jpg" alt="欢乐的八爪鱼" title="欢乐的八爪鱼"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="gm371200587" data-nick="欢乐的八爪鱼">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/gm371200587" target="_blank"><h5 class="oneline" title="欢乐的八爪鱼">欢乐的八爪鱼</h5></a></span>  <p></p><p class="article-num" title="61篇文章"> 61篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/u012269267" target="_blank"><img src="https://avatar.csdn.net/7/1/2/3_u012269267.jpg" alt="我-是-狼" title="我-是-狼"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="u012269267" data-nick="我-是-狼">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/u012269267" target="_blank"><h5 class="oneline" title="我-是-狼">我-是-狼</h5></a></span>  <p></p><p class="article-num" title="47篇文章"> 47篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/yueaini10000" target="_blank"><img src="https://avatar.csdn.net/5/6/F/3_yueaini10000.jpg" alt="菠萝y" title="菠萝y"></a><span data-report-click="{&quot;mod&quot;:&quot;popu_710&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><span class="blog-expert-button-follow btn-red-follow" data-name="yueaini10000" data-nick="菠萝y">关注</span></span></div><div class="info"><span data-report-click="{&quot;mod&quot;:&quot;popu_709&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/q5706503/article/details/85122343&quot;}"><a href="https://blog.csdn.net/yueaini10000" target="_blank"><h5 class="oneline" title="菠萝y">菠萝y</h5></a></span>  <p></p><p class="article-num" title="232篇文章"> 232篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div></div>
    				</div>
    			</div>
    		</div>
    	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42956945/article/details/81637843&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;5&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42956945/article/details/81637843&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;5&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42956945/article/details/81637843&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/weixin_42956945/article/details/81637843&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:4,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/weixin_42956945/article/details/81637843" target="_blank">              		<h4 class="text-truncate oneline"><em>Java</em>中<em>Map</em>的<em>entrySet</em>()<em>详解</em> - weixin_42956945的博客 - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">8-31</span>                    </p>                  </div>                </a>            	</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36850813/article/details/80247009&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;6&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36850813/article/details/80247009&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;6&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36850813/article/details/80247009&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_36850813/article/details/80247009&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:5,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/qq_36850813/article/details/80247009" target="_blank">              		<h4 class="text-truncate oneline"><em>map</em>的<em>四种</em><em>遍历</em><em>方式</em> - 霓虹深处 - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">11-21</span>                    </p>                  </div>                </a>            	</div>
    

    遍历Map的几种方法 entrySet 和 keySet - 积跬步,成千..._CSDN博客

    12-20

    Map四种遍历方法 - Juleen890的博客 - CSDN博客

    6-26

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><iframe src="https://adaccount.csdn.net/#/preview/263?m=cnQnpbSQApHncJDLiLbSJELLySEEHcQLpJmvpiHXtcpHDSJiXiibUHnAStpEJQbLLiLSWcntibiEpHSAntpAbcEbJpEAJbSbQApQ&amp;k=" frameborder="0" width="100%" height="75px" scrolling="no"></iframe><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?d=2&amp;k=&amp;m=cnQnpbSQApHncJDLiLbSJELLySEEHcQLpJmvpiHXtcpHDSJiXiibUHnAStpEJQbLLiLSWcntibiEpHSAntpAbcEbJpEAJbSbQApQ"></div></div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_39790910/article/details/79973935&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;9&quot;}" data-report-click="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_39790910/article/details/79973935&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:&quot;9&quot;}" data-track-view="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_39790910/article/details/79973935&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:8,&quot;extend1&quot;:&quot;_&quot;}" data-track-click="{&quot;mod&quot;:&quot;popu_614&quot;,&quot;dest&quot;:&quot;https://blog.csdn.net/qq_39790910/article/details/79973935&quot;,&quot;strategy&quot;:&quot;searchFromBaidu1&quot;,&quot;index&quot;:8,&quot;extend1&quot;:&quot;_&quot;}" data-flg="true">                <a href="https://blog.csdn.net/qq_39790910/article/details/79973935" target="_blank">              		<h4 class="text-truncate oneline"><em>Map</em>的<em>四种</em><em>遍历</em><em>方式</em> - qq_39790910的博客 - CSDN博客</h4>                  <div class="info-box d-flex align-content-center">                    <p>                      <span class="date">7-2</span>                    </p>                  </div>                </a>            	</div>
    
    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62" data-report-view="{&quot;mod&quot;:&quot;kp_popu_62-556&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_62-556&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129489_311" id="QIHOO__WEB__SO__1567582129489_311" style="display:block;margin:0;padding:0;border:none;width:852px;height:60px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129489_311-info" style="zoom:1"><info-div class="QIHOO__WEB__SO__1567582129489_311 singleImage clk" data-href="https://g1xd.mediav.com/s?type=2&amp;r=20&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366d34f51666&amp;price=AAAAAF1vZ7QAAAAAAAFhK7Xs5DppV/n8dI+ucg==&amp;finfo=DAABCAABAAAABwgAAgAAAAMEAAM/OynRQLNPhwAIAAIAAAADCgADBoo0fdkeO7oIAAQAAAARBgAGG4sGAAoAAAgADgAAADMKAA8AAAAAAAERcAA&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaA1JKCpe3IBRwW59mSoayw+LwvFQAAAA&amp;uai=FeTGlAIlAhUEFpKa3+Wgk5GKDRXyCCXjvvT9DyUAFRoUABwWi4P+mIDsnPaTARUAAAA&amp;ubi=Fbr0MxX0g+4CFcSv8hgVrJH/WxUGFRwW5JXM2hUWkpqJtLSfmooNNAQWqMAQJQYV6KfNwQUVngEVACQSFrr0MwA&amp;clickid=0&amp;cpx=__OFFSET_X__&amp;cpy=__OFFSET_Y__&amp;cs=__EVENT_TIME_START__&amp;ce=__EVENT_TIME_END__&amp;ldtype=2&amp;csign2=OpO4Um1u22-=&amp;url=http%3A%2F%2Fy.code.17tanwan.com%2Fhtmlcode%2F50306.html" data-pv="https://g1xd.mediav.com/s?type=1&amp;r=20&amp;tid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;finfo=DAABCAABAAAABwgAAgAAAAMEAAM/OynRQLNPhwAIAAIAAAADCgADBoo0fdkeO7oIAAQAAAARBgAGG4sGAAoAAAgADgAAADMKAA8AAAAAAAERcAA&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366d34f51666&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaA1JKCpe3IBRwW59mSoayw+LwvFQAAAA&amp;uai=FeTGlAIlAhUEFpKa3+Wgk5GKDRXyCCXjvvT9DyUAFRoUABwWi4P+mIDsnPaTARUAAAA&amp;ubi=Fbr0MxX0g+4CFcSv8hgVrJH/WxUGFRwW5JXM2hUWkpqJtLSfmooNNAQWqMAQJQYV6KfNwQUVngEVACQSFrr0MwA&amp;ds=2&amp;price=AAAAAF1vZ7QAAAAAAAFhK7Xs5DppV/n8dI+ucg==,https://max-l.mediav.com/rtb?type=2&amp;ver=1&amp;v=CGQSEDEzOTIzNjZkMzRmNTE2NjYYsqOKASCisEUoAmIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTmIAQA&amp;k=MowK8gAAAAA=&amp;w=AAAAAF1vZ7QAAAAAAAFhdy2uEtzG2ZcK3UrcTg&amp;i=8SxiRVoE19hN&amp;exp=BQBECQBECQFEAQJEEABDIwBD&amp;z=1" data-clk="https://max-l.mediav.com/rtb?type=3&amp;ver=1&amp;v=CGQSEDEzOTIzNjZkMzRmNTE2NjYYsqOKASCisEUoAmIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTlwAA&amp;k=il1tCAAAAAA=&amp;i=8SxiRVoE19hN&amp;exp=BQBECQBECQFEAQJEEABDIwBD&amp;x=__OFFSET_X__&amp;y=__OFFSET_Y__&amp;st=__EVENT_TIME_START__&amp;et=__EVENT_TIME_END__&amp;adw=__ADSPACE_W__&amp;adh=__ADSPACE_H__&amp;tc=&amp;turl=">
    <info-div class="wrap">
        <info-div class="singleImage-img singleImage-img-left">
            <info-div class="img" style="background-image:url(https://s3m.mediav.com/galileo/425245-15d826a181fa9a69a6c76808ffb79934.gif)"><info-div class="ads-tag"></info-div></info-div>
        </info-div>
        <info-div class="singleImage-body singleImage-body-left">
            <info-div class="singleImage-title">触龙神单职业:暴击1刀7777亿,玩不爽算我输!</info-div>
            <info-div class="singleImage-desc">贪玩游戏 · 顶新</info-div>
        </info-div>
    
    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_63" data-pid="63" data-report-view="{&quot;mod&quot;:&quot;kp_popu_63-555&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_63-555&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129493_919" id="QIHOO__WEB__SO__1567582129493_919" style="display:block;margin:0;padding:0;border:none;width:852px;height:60px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129493_919-info" style="zoom:1"><info-div class="QIHOO__WEB__SO__1567582129493_919 singleImage clk" data-href="https://g1xd.mediav.com/s?type=2&amp;r=20&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366cd7a15c2b&amp;price=AAAAAF1vZ7MAAAAAAAE2Wc2P9fA0liJDhjl3pg==&amp;finfo=DAABCAABAAAACggAAgAAAAwEAAM/Pdg8JmwtHwAIAAIAAAADCgADBbNxibIYjKgIAAQAAAAXBgAGG4sGAAoAAAgADgAAACAKAA8AAAAAAAGGoAA&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaAy5iBpe3IBRwWgbPQ1eSFzK7XARUAAAA&amp;uai=FaixkwIlAhUEFpKWx//EmeyPCxXyCCXi+PekAiUAFRoUABwWjMq/g/mTjPU1FQAAAA&amp;ubi=Fb6sNxXgh8YCFeTipRcV0ujGWhUGFRwW3Nef/xUWkpb5yabiuLMLNAQWsOAQJQYVmN7giA0VngEVACQUFr6sNwA&amp;clickid=0&amp;cpx=__OFFSET_X__&amp;cpy=__OFFSET_Y__&amp;cs=__EVENT_TIME_START__&amp;ce=__EVENT_TIME_END__&amp;ldtype=2&amp;csign2=ELYW1NkCL3Z=&amp;url=http%3A%2F%2Fbaidu.code.mytanwan.com%2Fhtmlcode%2F37123.html" data-pv="https://g1xd.mediav.com/s?type=1&amp;r=20&amp;tid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;finfo=DAABCAABAAAACggAAgAAAAwEAAM/Pdg8JmwtHwAIAAIAAAADCgADBbNxibIYjKgIAAQAAAAXBgAGG4sGAAoAAAgADgAAACAKAA8AAAAAAAGGoAA&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366cd7a15c2b&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaAy5iBpe3IBRwWgbPQ1eSFzK7XARUAAAA&amp;uai=FaixkwIlAhUEFpKWx//EmeyPCxXyCCXi+PekAiUAFRoUABwWjMq/g/mTjPU1FQAAAA&amp;ubi=Fb6sNxXgh8YCFeTipRcV0ujGWhUGFRwW3Nef/xUWkpb5yabiuLMLNAQWsOAQJQYVmN7giA0VngEVACQUFr6sNwA&amp;ds=2&amp;price=AAAAAF1vZ7MAAAAAAAE2Wc2P9fA0liJDhjl3pg==,https://max-l.mediav.com/rtb?type=2&amp;ver=1&amp;v=CGQSEDEzOTIzNjZjZDdhMTVjMmIY1NiJASCisEUoAmIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTmIAQA&amp;k=47R1lAAAAAA=&amp;w=AAAAAF1vZ7MAAAAAAAE2jGCBZF3pYbctZFk9Aw&amp;i=cfGj0a6E19hW&amp;exp=BQBECQBEAQJEFgJEEABDIwBD&amp;z=1" data-clk="https://max-l.mediav.com/rtb?type=3&amp;ver=1&amp;v=CGQSEDEzOTIzNjZjZDdhMTVjMmIY1NiJASCisEUoAmIXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTlwAA&amp;k=GcgX1QAAAAA=&amp;i=cfGj0a6E19hW&amp;exp=BQBECQBEAQJEFgJEEABDIwBD&amp;x=__OFFSET_X__&amp;y=__OFFSET_Y__&amp;st=__EVENT_TIME_START__&amp;et=__EVENT_TIME_END__&amp;adw=__ADSPACE_W__&amp;adh=__ADSPACE_H__&amp;tc=&amp;turl=">
    <info-div class="wrap">
        <info-div class="singleImage-img singleImage-img-left">
            <info-div class="img" style="background-image:url(https://s3m.mediav.com/galileo/453407-422303c83f37f67075642b39a2de926f.gif)"><info-div class="ads-tag"></info-div></info-div>
        </info-div>
        <info-div class="singleImage-body singleImage-body-left">
            <info-div class="singleImage-title">这变态传奇你卸载算我输!爆率9.8,不花一分钱,刀刀爆橙装!</info-div>
            <info-div class="singleImage-desc">贪玩游戏 · 顶新</info-div>
        </info-div>
    

    mapentryset后的问题 望大神解惑

    03-03

    - 问答

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_64" data-pid="64" data-report-view="{&quot;mod&quot;:&quot;kp_popu_64-81&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_64-81&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129541_888" id="QIHOO__WEB__SO__1567582129541_888" style="display:block;margin:0;padding:0;border:none;width:852px;height:60px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129541_888-info" style="zoom:1"></info-div></newsfeed></div>
    
    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_65" data-pid="65" data-report-view="{&quot;mod&quot;:&quot;kp_popu_65-84&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_65-84&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129551_605" id="QIHOO__WEB__SO__1567582129551_605" style="display:block;margin:0;padding:0;border:none;width:852px;height:60px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129551_605-info" style="zoom:1"><info-div class="QIHOO__WEB__SO__1567582129551_605 singleImage clk" data-href="https://g1xd.mediav.com/s?type=2&amp;r=20&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366cd7a15c2b&amp;price=AAAAAF1vZ7MAAAAAAAE3D1BGpS7P+FG0SpRiTA==&amp;finfo=DAABCAABAAAABAgAAgAAAAYEAAM/OEhY2yeu1gAIAAIAAAADCgADBbN6oYTCbGoIAAQAAAALBgAGG4sGAAoAAAgADgAAACAKAA8AAAAAAACcQAA&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaAy5iBpe3IBRwWgbPQ1eSFzK7XARUAAAA&amp;uai=FaixkwIlAhUEFpKWx//EmeyPCxXyCCXi+PekAiUAFRoUABwWjMq/g/mTjPU1FQAAAA&amp;ubi=FejnJBWkhJ4CFaD1xhUVwI36WBUGFRwWuonH+hQWkpaOsbCovbMLNAYWsOAQJQYVpoienAgVngEVACQUFujnJAA&amp;clickid=0&amp;cpx=__OFFSET_X__&amp;cpy=__OFFSET_Y__&amp;cs=__EVENT_TIME_START__&amp;ce=__EVENT_TIME_END__&amp;ldtype=2&amp;csign2=aV75QrTCu0Z=&amp;url=http%3A%2F%2Fbaidu.code.jjyx.com%2Fhtmlcode%2F24889.html%3Fsourceid%3D%7Bsource_id%7D" data-pv="https://g1xd.mediav.com/s?type=1&amp;r=20&amp;tid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;finfo=DAABCAABAAAABAgAAgAAAAYEAAM/OEhY2yeu1gAIAAIAAAADCgADBbN6oYTCbGoIAAQAAAALBgAGG4sGAAoAAAgADgAAACAKAA8AAAAAAACcQAA&amp;mv_ref=blog.csdn.net&amp;enup=CAABJG52VAgAAlR2biQA&amp;mvid=NzgxMDUzNjg3NTAxNjA5MzAwNjAwMTk&amp;bid=1392366cd7a15c2b&amp;ugi=FcTgigEVyNtrTBUCFSgVKBUAABX3ztfRBSXIARaAy5iBpe3IBRwWgbPQ1eSFzK7XARUAAAA&amp;uai=FaixkwIlAhUEFpKWx//EmeyPCxXyCCXi+PekAiUAFRoUABwWjMq/g/mTjPU1FQAAAA&amp;ubi=FejnJBWkhJ4CFaD1xhUVwI36WBUGFRwWuonH+hQWkpaOsbCovbMLNAYWsOAQJQYVpoienAgVngEVACQUFujnJAA&amp;ds=3&amp;price=AAAAAF1vZ7MAAAAAAAE3D1BGpS7P+FG0SpRiTA==,https://max-l.mediav.com/rtb?type=2&amp;ver=1&amp;v=CGQSEDEzOTIzNjZjZDdhMTVjMmIY1NiJASCisEUoA2IXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTmIAQA&amp;k=ojjL8gAAAAA=&amp;w=AAAAAF1vZ7MAAAAAAAE3S0_94pLxI69oLg-7yA&amp;i=cfrj0a6E19gE&amp;exp=BQBECQBEAQJEFgJEEABDIwBD&amp;z=1" data-clk="https://max-l.mediav.com/rtb?type=3&amp;ver=1&amp;v=CGQSEDEzOTIzNjZjZDdhMTVjMmIY1NiJASCisEUoA2IXNzgxMDUzNjg3NTAxNjA5MzAwNjAwMTlwAA&amp;k=dyfa3gAAAAA=&amp;i=cfrj0a6E19gE&amp;exp=BQBECQBEAQJEFgJEEABDIwBD&amp;x=__OFFSET_X__&amp;y=__OFFSET_Y__&amp;st=__EVENT_TIME_START__&amp;et=__EVENT_TIME_END__&amp;adw=__ADSPACE_W__&amp;adh=__ADSPACE_H__&amp;tc=&amp;turl=">
    <info-div class="wrap">
        <info-div class="singleImage-img singleImage-img-left">
            <info-div class="img" style="background-image:url(https://s3m.mediav.com/galileo/301556-27e49e469ababbb79563a62c9f9d2bab.gif)"><info-div class="ads-tag"></info-div></info-div>
        </info-div>
        <info-div class="singleImage-body singleImage-body-left">
            <info-div class="singleImage-title">陈小春坦言:这游戏不充钱都能当全服大哥,找到充值入口算我输!</info-div>
            <info-div class="singleImage-desc">贪玩游戏 · 顶新</info-div>
        </info-div>
    
    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_66" data-pid="66" data-report-view="{&quot;mod&quot;:&quot;kp_popu_66-87&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_66-87&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129562_158" id="QIHOO__WEB__SO__1567582129562_158" style="display:block;margin:0;padding:0;border:none;width:852px;height:60px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129562_158-info" style="zoom:1"></info-div></newsfeed></div>
    

    HashMap的简单使用之EntrySet(四)

    04-06 阅读数 358

    EntrySet可以遍历HashMap中的值 博文 来自: zrcshendustudy的博客

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_67" data-pid="67" data-report-view="{&quot;mod&quot;:&quot;kp_popu_67-658&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_67-658&quot;,&quot;keyword&quot;:&quot;&quot;}"><script type="text/javascript">
        (function() {
            var s = "_" + Math.random().toString(36).slice(2);
            document.write('<div style="" id="' + s + '"></div>');
            (window.slotbydup = window.slotbydup || []).push({
                id: "u4623113",
                container: s
            });
        })();
    

    <div class="recommend-item-box recommend-recommend-box"><div id="kp_box_68" data-pid="68" data-report-view="{&quot;mod&quot;:&quot;kp_popu_68-654&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_68-654&quot;,&quot;keyword&quot;:&quot;&quot;}"><div class="mediav_ad"><newsfeed class="newsfeed QIHOO__WEB__SO__1567582129565_80" id="QIHOO__WEB__SO__1567582129565_80" style="display:block;margin:0;padding:0;border:none;width:900px;height:84px;overflow-y:hidden;overflow-x:hidden;position:relative;text-align:left;"><info-div id="QIHOO__WEB__SO__1567582129565_80-info" style="zoom:1"></info-div></newsfeed></div>
    
                            <div class="recommend-loading-box">
                <img src="https://csdnimg.cn/release/phoenix/images/feedLoading.gif">
            </div>
            <div class="recommend-end-box">
                <p class="text-center">没有更多推荐了,<a href="https://blog.csdn.net/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p>
            </div>
        </div>
    </main>
    
    <aside>
    <div id="asideProfile" class="aside-box">
    <!-- <h3 class="aside-title">个人资料</h3> -->
    <div class="profile-intro d-flex">
        <div class="avatar-box d-flex justify-content-center flex-column">
            <a href="https://blog.csdn.net/q5706503">
              <img src="https://avatar.csdn.net/C/2/0/3_q5706503.jpg" class="avatar_pic">
                              <img src="https://g.csdnimg.cn/static/user-reg-year/2x/1.png" class="user-years">
                          </a>
            
        </div>
        <div class="user-info d-flex flex-column">
            <p class="name csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}">
                <a href="https://blog.csdn.net/q5706503" class="" id="uid">NO0b</a>
            </p>
                        <p class="personal-home-page"><a target="_blank" href="https://me.csdn.net/q5706503">TA的个人主页 &gt;</a></p>
        </div>
                <div class="opt-box d-flex justify-content-center flex-column">
            <span class="csdn-tracking-statistics tracking-click" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}">
                                    <a class="btn btn-sm btn-red-hollow attention" id="btnAttent">关注</a>
                            </span>
        </div>
            </div>
    <div class="data-info d-flex item-tiling">
                <dl class="text-center" title="148">
                        <dt><a href="https://blog.csdn.net/q5706503?t=1">原创</a></dt>
            <dd><a href="https://blog.csdn.net/q5706503?t=1"><span class="count">148</span></a></dd>
                    </dl>
        <dl class="text-center" id="fanBox" title="54">
            <dt>粉丝</dt>
            <dd><span class="count" id="fan">54</span></dd>
        </dl>
        <dl class="text-center" title="65">
            <dt>喜欢</dt>
            <dd><span class="count">65</span></dd>
        </dl>
        <dl class="text-center" title="47">
            <dt>评论</dt>
            <dd><span class="count">47</span></dd>
        </dl>
    </div>
    <div class="grade-box clearfix">
        <dl>
            <dt>等级:</dt>
            <dd>
                <a href="https://blog.csdn.net/home/help.html#level" title="5级,点击查看等级说明" target="_blank">
                    <svg class="icon icon-level" aria-hidden="true">
                        <use xlink:href="#csdnc-bloglevel-5"></use>
                    </svg>
                </a>
            </dd>
        </dl>
        <dl>
            <dt>访问:</dt>
            <dd title="165107">
                16万+            </dd>
        </dl>
        <dl>
            <dt>积分:</dt>
            <dd title="3160">
                3160            </dd>
        </dl>
        <dl title="19833">
            <dt>排名:</dt>
            <dd>1万+</dd>
        </dl>
    </div>
        <div class="badge-box d-flex">
        <span>勋章:</span>
        <div class="badge d-flex">
                                                        <div class="icon-badge" title="持之以恒">
                       <div class="mouse-box">
                          <img src="https://g.csdnimg.cn/static/user-medal/chizhiyiheng.svg" alt="">
                          <div class="icon-arrow"></div>
                       </div>
                       <div class="grade-detail-box">
                           <div class="pos-box">
                               <div class="left-box d-flex justify-content-center align-items-center flex-column">
                                    <img src="https://g.csdnimg.cn/static/user-medal/chizhiyiheng.svg" alt="">
                                   <p>持之以恒</p>
                               </div>
                               <div class="right-box">
                                   授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!                               </div>
                           </div>
                       </div>
                   </div>
                                             </div>
        <script>
            (function ($) {
                setTimeout(function(){
                    $('div.icon-badge.show-moment').removeClass('show-moment');
                }, 5000);
            })(window.jQuery)
        </script>
    </div>
    

    热门文章

    • 				<a href="https://blog.csdn.net/q5706503/article/details/85122343">
                                                  Java中Map的 entrySet() 详解以及用法(四种遍历map的方式)                    </a>
      				<p class="read">阅读数 <span>7620</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.csdn.net/q5706503/article/details/83217864">
                                                  js删除css某个属性值                    </a>
      				<p class="read">阅读数 <span>7073</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.csdn.net/q5706503/article/details/83003153">
                                                  前端----通过js给相同class的元素添加事件                    </a>
      				<p class="read">阅读数 <span>6960</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.csdn.net/q5706503/article/details/84640762">
                                                  JDK1.8关于运行时常量池, 字符串常量池的要点                    </a>
      				<p class="read">阅读数 <span>4592</span></p>
      			</li>
      						<li>
      
      				<a href="https://blog.csdn.net/q5706503/article/details/82954200">
                                                  JAVA判断字符串是否相等不能用==                    </a>
      				<p class="read">阅读数 <span>4333</span></p>
      			</li>
      				</ul>
      </div>
      

    最新评论

    	<div class="aside-box">
    		<div id="kp_box_57" data-pid="57" data-report-view="{&quot;mod&quot;:&quot;kp_popu_57-707&quot;,&quot;keyword&quot;:&quot;&quot;}" data-report-click="{&quot;mod&quot;:&quot;kp_popu_57-707&quot;,&quot;keyword&quot;:&quot;&quot;}"><script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    

    			<div class="aside-box">
    		<div class="persion_article">
    		<div class="right_box footer_box csdn-tracking-statistics" data-report-view="{&quot;mod&quot;:&quot;popu_475&quot;}">        <div class="contact-box" id="footer-contact-box"><div class="img-box"><a href="https://edu.csdn.net?utm_source=csdn_footer" target="_blank"><img src="https://csdnimg.cn/pubfooter/images/edu-QR.png" alt="CSDN学院" style="padding: 6px;"></a><p class="app-text">CSDN学院</p></div><div class="img-box fr"><img style="padding:6px;" src="https://csdnimg.cn/pubfooter/images/job-QR.png" alt="CSDN企业招聘"><p class="app-text">CSDN企业招聘</p></div></div>        <div class="contact-info">        <p><svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.167 2h11.666C14.478 2 15 2.576 15 3.286v9.428c0 .71-.522 1.286-1.167 1.286H2.167C1.522 14 1 13.424 1 12.714V3.286C1 2.576 1.522 2 2.167 2zm-.164 3v1L8 10l6-4V5L8 9 2.003 5z" fill="#5c5c5c" fill-rule="evenodd"></path></svg><a href="mailto:webmaster@csdn.net" target="_blank"><span class="txt">kefu@csdn.net</span></a>        <em class="width126"><svg t="1538013544186" width="17" height="17" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23556" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M902.60033922 650.96445566c-18.0718526-100.84369837-94.08399771-166.87723736-94.08399771-166.87723737 10.87530062-91.53186599-28.94715402-107.78733693-28.94715401-107.78733691C771.20003413 93.08221664 517.34798062 98.02553561 511.98620441 98.16348824 506.65661791 98.02553561 252.75857992 93.08221664 244.43541101 376.29988138c0 0-39.79946279 16.25547094-28.947154 107.78733691 0 0-75.98915247 66.03353901-94.0839977 166.87723737 0 0-9.63372291 170.35365477 86.84146124 20.85850523 0 0 21.70461757 56.79068296 61.50407954 107.78733692 0 0-71.1607951 23.19910867-65.11385185 83.46161052 0 0-2.43717093 67.16015592 151.93232126 62.56172014 0 0 108.5460788-8.0932473 141.10300432-52.14626271H526.33792324c32.57991817 44.05301539 141.10300431 52.1462627 141.10300431 52.14626271 154.3235077 4.59843579 151.95071457-62.56172013 151.95071457-62.56172014 6.00095876-60.26250183-65.11385185-83.46161053-65.11385185-83.46161052 39.77647014-50.99665395 61.4810877-107.78733693 61.4810877-107.78733692 96.45219231 149.49514952 86.84146124-20.85850523 86.84146125-20.85850523" p-id="23557" fill="#5c5c5c"></path></svg><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&amp;key=XzgwMDE4MDEwNl80ODc3MzVfODAwMTgwMTA2XzJf" class="qqcustomer_s" target="_blank"><span class="txt">QQ客服</span></a></em></p>        <p><em class="width126"><svg t="1538012951761" width="17" height="17" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23083" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M466.4934485 880.02006511C264.6019863 859.18313878 107.13744214 688.54706608 107.13744214 481.14947309 107.13744214 259.68965394 286.68049114 80.14660493 508.14031029 80.14660493s401.00286817 179.54304901 401.00286814 401.00286816v1.67343191C908.30646249 737.58941724 715.26799489 943.85339507 477.28978337 943.85339507c-31.71423369 0-62.61874229-3.67075386-92.38963569-10.60739903 30.09478346-11.01226158 56.84270313-29.63593923 81.5933008-53.22593095z m-205.13036267-398.87059202a246.77722444 246.77722444 0 0 0 493.5544489 0 30.85052691 30.85052691 0 0 0-61.70105383 0 185.07617062 185.07617062 0 0 1-370.15234125 0 30.85052691 30.85052691 0 0 0-61.70105382 0z" p-id="23084" fill="#5c5c5c"></path></svg><a href="http://bbs.csdn.net/forums/Service" target="_blank"><span class="txt">客服论坛</span></a></em>        <svg t="1538013874294" width="17" height="17" style="" viewBox="0 0 1194 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="23784" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M1031.29689505 943.85339507h-863.70679012A71.98456279 71.98456279 0 0 1 95.60554212 871.86883228v-150.85178906c0-28.58329658 16.92325492-54.46750945 43.13135785-65.93861527l227.99160176-99.75813425c10.55341735-4.61543317 18.24580594-14.0082445 20.72896295-25.23643277l23.21211998-105.53417343a71.95757195 71.95757195 0 0 1 70.28414006-56.51881307h236.95255971c33.79252817 0 63.02360485 23.5090192 70.28414004 56.51881307l23.21211997 105.53417343c2.48315701 11.25517912 10.17554562 20.62099961 20.72896296 25.23643277l227.99160177 99.75813425a71.98456279 71.98456279 0 0 1 43.13135783 65.93861527v150.85178906A71.98456279 71.98456279 0 0 1 1031.26990421 943.85339507z m-431.85339506-143.94213475c143.94213474 0 143.94213474-48.34058941 143.94213474-107.96334876s-64.45411922-107.96334877-143.94213474-107.96334877c-79.51500637 0-143.94213474 48.34058941-143.94213475 107.96334877s0 107.96334877 143.94213475 107.96334876zM1103.254467 296.07330247v148.9894213a35.97878598 35.97878598 0 0 1-44.15700966 35.03410667l-143.94213473-33.57660146a36.0057768 36.0057768 0 0 1-27.80056231-35.03410668V296.1002933c-35.97878598-47.98970852-131.95820302-71.98456279-287.91126031-71.98456279S347.53801649 248.11058478 311.53223967 296.1002933v115.385829c0 16.73431906-11.52508749 31.25538946-27.80056233 35.03410668l-143.94213473 33.57660146A35.97878598 35.97878598 0 0 1 95.63253297 445.06272377V296.07330247C162.81272673 152.13116772 330.77670658 80.14660493 599.47049084 80.14660493s436.63077325 71.98456279 503.81096699 215.92669754z" p-id="23785" fill="#5c5c5c"></path></svg>400-660-0108 </p>        <p style="text-align:center">工作时间 8:30-22:00</p>        </div>        <div class="bg-gray">            <div class="feed_copyright">            <p><a class="right-dotte" href="//www.csdn.net/company/index.html#about" target="_blank">关于我们</a><a href="//www.csdn.net/company/index.html#recruit" target="_blank" class="right-dotte">招聘</a><a href="//www.csdn.net/company/index.html#contact" target="_blank" class="right-dotte">广告服务</a>            <a href="https://www.csdn.net/gather/A" target="_blank" class="footer_baidu">            网站地图</a></p>            <p class="fz12_baidu"><a href="https://zn.baidu.com/cse/home/index" target="_blank"><svg width="13" height="14" xmlns="http://www.w3.org/2000/svg"><path d="M8.392 7.013c1.014 1.454 2.753 2.8 2.753 2.8s1.303 1.017.47 2.98c-.833 1.962-3.876.942-3.876.942s-1.122-.36-2.424-.072c-1.303.291-2.426.181-2.426.181s-1.523.037-1.957-1.888c-.434-1.927 1.52-2.982 1.666-3.161.145-.183 1.159-.873 1.81-1.963.653-1.09 2.608-1.962 3.984.181zm1.23 5.706V9.346H8.64v2.534h-.937s-.3-.044-.356-.285V9.33l-.925.015v2.518s.042.627.925.855h2.277zm-3.685.013V7.951l-.896-.014v1.295H3.987s-1.054.086-1.422 1.28c-.129.798.114 1.266.156 1.368.043.099.383.682 1.238.852h1.978zm-2.433-1.45c-.087-.286.013-.613.057-.741.042-.128.228-.427.61-.54h.855v1.948h-.797s-.555-.029-.725-.668zm6.877-8.775c-.143.909-.865 2.108-1.99 1.962-1.121-.144-1.375-1.16-1.267-2.179C7.214 1.458 8.21.18 9.007.364c.796.18 1.52 1.235 1.374 2.143zm-4.09-.345c0 1.197-.68 2.164-1.52 2.164S3.25 3.36 3.25 2.162C3.25.967 3.932 0 4.77 0c.842 0 1.52.967 1.52 2.162zm4.854 2.09c1.34 0 1.701 1.309 1.701 1.743 0 .438.182 2.29-1.485 2.326-1.667.037-1.737-1.126-1.737-1.96 0-.874.179-2.11 1.52-2.11zm-7.93.581c.045.398.253 2.217-1.27 2.544C.427 7.704-.14 5.947.028 5.124c0 0 .18-1.78 1.412-1.89.98-.085 1.7.986 1.774 1.6z" fill="#999" fill-rule="evenodd"></path></svg><em>百度提供站内搜索</em></a>&nbsp;<a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="_blank" class="ml14">京ICP备19004658号</a></p>            <p class="fz12_baidu">©1999-2019 北京创新乐知网络技术有限公司 </p>            </div>        </div>        <div class="allow-info-box">        <p><a href="https://csdnimg.cn/cdn/content-toolbar/csdn-ICP.png" target="_blank">经营性网站备案信息</a>        <em class="width126"><a href="http://www.cyberpolice.cn/" target="_blank"><span>网络110报警服务</span></a></em></p>        <p><a href="http://www.bjjubao.org/" target="_blank"><span>北京互联网违法和不良信息举报中心</span></a></p>        <p><a href="http://www.12377.cn/" target="_blank"><span>中国互联网举报中心</span></a><a href="https://download.csdn.net/index.php/tutelage/" target="_blank"><span style="margin-left:8px">家长监护</span></a><a href="https://blog.csdn.net/blogdevteam/article/details/90369522" target="_blank"><span style="margin-left:8px">版权申诉</span></a></p>        </div>        </div></div>
    	</div>
    </div>
    
    • 0
      点赞
    • 0
      评论
    • 1
      收藏
    • 一键三连
      一键三连
    • 扫一扫,分享海报

    ©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

    余额充值