| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/blob/*name(/*path) |
| route-controller | blob |
| route-action | show |
| fetch-nonce | v2:6586a236-dcbb-5a53-7070-0ccdca8c1065 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | D96C:8668A:43C7FF:5DB513:6AFCB36E |
| html-safe-nonce | e38ee84115a6b044530a898f2cc78ff0eaccf655136fe21f470eee299bf58e01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTZDOjg2NjhBOjQzQzdGRjo1REI1MTM6NkFGQ0IzNkUiLCJ2aXNpdG9yX2lkIjoiODMxNDY0MDU3MzIzOTQ0MDIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ce3b8980909b851872c8a79b7b4d95ebcf12327b4036ff1b1168966b661dad9 |
| hovercard-subject-tag | repository:567096189 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///blob/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| twitter:image | https://opengraph.githubassets.com/4b5d44c40fa809ac9bdd72eac32bdeaa86ecaf8b45c8811ba9237bcff40065ee/sharingjoin/bestJavaer |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b5d44c40fa809ac9bdd72eac32bdeaa86ecaf8b45c8811ba9237bcff40065ee/sharingjoin/bestJavaer |
| og:image:alt | 这是一个成为更好的Java程序员的系列教程. Contribute to sharingjoin/bestJavaer development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3084aead77cbcb4f4904fba53851fa1a0546b0dec3619bd250815e72588dc6d |
| turbo-cache-control | no-cache |
| go-import | github.com/sharingjoin/bestJavaer git https://github.com/sharingjoin/bestJavaer.git |
| octolytics-dimension-user_id | 18749359 |
| octolytics-dimension-user_login | sharingjoin |
| octolytics-dimension-repository_id | 567096189 |
| octolytics-dimension-repository_nwo | sharingjoin/bestJavaer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 269198820 |
| octolytics-dimension-repository_parent_nwo | crisxuan/bestJavaer |
| octolytics-dimension-repository_network_root_id | 269198820 |
| octolytics-dimension-repository_network_root_nwo | crisxuan/bestJavaer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5410e4bebd3e45b138c853ecef3992279d86d5af |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsharingjoin%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-forandforeach.md |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsharingjoin%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-forandforeach.md |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=sharingjoin%2FbestJavaer |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| Reload | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| sharingjoin | https://redirect.github.com/sharingjoin |
| bestJavaer | https://redirect.github.com/sharingjoin/bestJavaer |
| Code | https://redirect.github.com/sharingjoin/bestJavaer |
| Pull requests | https://redirect.github.com/sharingjoin/bestJavaer/pulls |
| Actions | https://redirect.github.com/sharingjoin/bestJavaer/actions |
| Projects | https://redirect.github.com/sharingjoin/bestJavaer/projects |
| Security and quality | https://redirect.github.com/sharingjoin/bestJavaer/security |
| Insights | https://redirect.github.com/sharingjoin/bestJavaer/pulse |
| https://redirect.github.com/sharingjoin/bestJavaer |
| bestJavaer | https://redirect.github.com/sharingjoin/bestJavaer/tree/master |
| java-basic | https://redirect.github.com/sharingjoin/bestJavaer/tree/master/java-basic |
| History | https://redirect.github.com/sharingjoin/bestJavaer/commits/master/java-basic/java-forandforeach.md |
| https://redirect.github.com/sharingjoin/bestJavaer/commits/master/java-basic/java-forandforeach.md |
| bestJavaer | https://redirect.github.com/sharingjoin/bestJavaer/tree/master |
| java-basic | https://redirect.github.com/sharingjoin/bestJavaer/tree/master/java-basic |
| Raw | https://github.com/sharingjoin/bestJavaer/raw/refs/heads/master/java-basic/java-forandforeach.md |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#for-foreach-iterator-三种遍历方式的比较 |
| for 、foreach 、iterator 三种遍历方式的比较 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#for-foreach-iterator-%E4%B8%89%E7%A7%8D%E9%81%8D%E5%8E%86%E6%96%B9%E5%BC%8F%E7%9A%84%E6%AF%94%E8%BE%83 |
| 习惯用法 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#%E4%B9%A0%E6%83%AF%E7%94%A8%E6%B3%95 |
| 速度对比 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#%E9%80%9F%E5%BA%A6%E5%AF%B9%E6%AF%94 |
| remove操作三种遍历方式的影响 | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#remove%E6%93%8D%E4%BD%9C%E4%B8%89%E7%A7%8D%E9%81%8D%E5%8E%86%E6%96%B9%E5%BC%8F%E7%9A%84%E5%BD%B1%E5%93%8D |
| for循环的remove | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#for%E5%BE%AA%E7%8E%AF%E7%9A%84remove |
| foreach 中的remove | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#foreach-%E4%B8%AD%E7%9A%84remove |
| Iterator迭代器的remove | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#iterator%E8%BF%AD%E4%BB%A3%E5%99%A8%E7%9A%84remove |
| 后记: | https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#%E5%90%8E%E8%AE%B0 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#习惯用法 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#速度对比 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#remove操作三种遍历方式的影响 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#for循环的remove |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#foreach-中的remove |
| https://camo.githubusercontent.com/8f7bb2187683f09dc501ebf748d3877a4b964e162fc5223000ff8b7267d3a2e2/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323531333635332d313433343436353739342e706e67 |
| https://camo.githubusercontent.com/e9a17fe613365fd5ba50e5b1a992b22c6d9552ad3742d2a0b9c2e191fa738424/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323533303036332d313036323939383736342e706e67 |
| https://camo.githubusercontent.com/7b3ea2b8b078e2c049da53ab5a16bbd3d4887fe4af326061899ecc771e95f81e/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323534303736382d3334383638353330312e706e67 |
| https://camo.githubusercontent.com/89680d98137c12e50f930a3b8503034d2ba45beee8a978e54dac0455c9274177/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323534393833302d3339393039323737382e706e67 |
| https://camo.githubusercontent.com/2c6ed8f46f65648869a621322587676451774d806ba3373b69d9a1597e66244c/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323630303737352d313032323532313634312e706e67 |
| https://camo.githubusercontent.com/09b711f29fca16017d2eff86bdad69dd32b9a3376f639d6068f379a657fc5027/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323630383239342d3430383432363034382e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#iterator迭代器的remove |
| https://camo.githubusercontent.com/a718fc38472abb601ff7c0ab8614133f5c44a92eef9ef39334068c5cd4225bdc/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323632363930352d3537353630393739342e706e67 |
| https://camo.githubusercontent.com/d3325af3119a99ce65e321724f31ca43a351408b3bc9b8f33a52b3ac99173d93/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323633363131322d37333836383237312e706e67 |
| https://camo.githubusercontent.com/5330cf9fbf69c9ccb5e9ac902a30fb2a3ec1c4289c5c3e0a93d7b927424c9b1f/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323634373632302d3535343531303337312e706e67 |
| https://camo.githubusercontent.com/61847810b4c301c678c1e5f2a11fe4c3ab341fd4dd6f639261f4eef1d63b497a/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323730303732362d323034323232313439362e706e67 |
| https://camo.githubusercontent.com/a23d8cd28f2f7b58b325ee25593073ef776f1f628b5d3205a300dac8f4245419/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313930352f313531353131312d32303139303532343039323730383338332d3335353531323135342e706e67 |
| https://redirect.github.com/sharingjoin/bestJavaer/blob/master/java-basic/java-forandforeach.md#后记 |
| https://camo.githubusercontent.com/64d47cab7320552526c1e21a3ca1138c2c6b231cbf63173ff1e31c982b37b734/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766b62637a786f6a33316c32307438616c352e6a7067 |
| https://camo.githubusercontent.com/d15ead80e46ed776dd253e5c3a5914e7fa7332043f7d7dbfc2c4906ed1c9975b/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766c346b687a396a333164363068386d7a652e6a7067 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |