{"id":92742,"date":"2020-03-19T00:47:37","date_gmt":"2020-03-18T16:47:37","guid":{"rendered":"http:\/\/4563.org\/?p=92742"},"modified":"2020-03-19T00:47:37","modified_gmt":"2020-03-18T16:47:37","slug":"java-stream-%e4%b8%80%e4%b8%aa-arraylist%ef%bc%8c%e5%9c%a8-foreach-%e4%b8%8b%e5%a6%82%e4%bd%95%e8%8e%b7%e5%be%97%e5%89%8d%e4%b8%80%e4%b8%aa%e5%85%83%e7%b4%a0%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=92742","title":{"rendered":"Java stream \u4e00\u4e2a ArrayList\uff0c\u5728 ForEach \u4e0b\u5982\u4f55\u83b7\u5f97\u524d\u4e00\u4e2a\u5143\u7d20\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Java stream \u4e00\u4e2a ArrayList\uff0c\u5728 ForEach \u4e0b\u5982\u4f55\u83b7\u5f97\u524d\u4e00\u4e2a\u5143\u7d20\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 8e47e42 <\/span>  <span><i><\/i> 23<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5982\u9898\u95ee\uff0cfor loop \u80fd\u5f88\u5bb9\u6613\u7684\u8bfb\u5230 i-1\uff0c\u4f46\u662f for each \u4e0b\u9762\u600e\u4e48\u83b7\u5f97\u5462\uff1f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"982024\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lhx2008 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8981\u4f7f\u7528 forEach                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982025\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : optional <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fed\u4ee3\u5668\u662f\u4e0d\u80fd\u83b7\u53d6\u524d\u4e00\u4e2a\u7684\uff0c\u9664\u975e\u4f60\u81ea\u5df1\u8bb0\u4e0b\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"982026\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SoloCompany <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/stackoverflow.com\/questions\/20470010\/collect-successive-pairs-from-a-stream                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Java stream \u4e00\u4e2a Ar&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92742"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92742"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/92742\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92742"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}