| 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:b6a4c008-2bc6-bd03-6808-9decd8ada9c6 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 883C:2F85E4:19F136:20CBFD:6B0294EC |
| html-safe-nonce | 2a216e9f2abc494e3fb9a5e52bd68068cebf31f8c4ebd72d845f8656dcf0c714 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODNDOjJGODVFNDoxOUYxMzY6MjBDQkZEOjZCMDI5NEVDIiwidmlzaXRvcl9pZCI6IjM0NTA0ODIxNjgzNzk4NTUxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd269e709c5e13a54a6c70de639d56533012d4c1a4102d746aedb068118a36c7 |
| hovercard-subject-tag | repository:324309778 |
| 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/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| twitter:image | https://opengraph.githubassets.com/b72966d700ce9da64a759dcf87f09042831a62447789d069c37c382ccd887241/Fr666/bestJavaer |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b72966d700ce9da64a759dcf87f09042831a62447789d069c37c382ccd887241/Fr666/bestJavaer |
| og:image:alt | 这是一个成为更好的Java程序员的系列教程. Contribute to Fr666/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 | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/Fr666/bestJavaer git https://github.com/Fr666/bestJavaer.git |
| octolytics-dimension-user_id | 33284087 |
| octolytics-dimension-user_login | Fr666 |
| octolytics-dimension-repository_id | 324309778 |
| octolytics-dimension-repository_nwo | Fr666/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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFr666%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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FFr666%2FbestJavaer%2Fblob%2Fmaster%2Fjava-basic%2Fjava-forandforeach.md |
| Sign up | https://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=Fr666%2FbestJavaer |
| Reload | https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| Reload | https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| Reload | https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md |
| Fr666 | https://github.com/Fr666 |
| bestJavaer | https://github.com/Fr666/bestJavaer |
| Code | https://github.com/Fr666/bestJavaer |
| Pull requests | https://github.com/Fr666/bestJavaer/pulls |
| Actions | https://github.com/Fr666/bestJavaer/actions |
| Projects | https://github.com/Fr666/bestJavaer/projects |
| Security and quality | https://github.com/Fr666/bestJavaer/security |
| Insights | https://github.com/Fr666/bestJavaer/pulse |
| https://github.com/Fr666/bestJavaer |
| bestJavaer | https://github.com/Fr666/bestJavaer/tree/master |
| java-basic | https://github.com/Fr666/bestJavaer/tree/master/java-basic |
| History | https://github.com/Fr666/bestJavaer/commits/master/java-basic/java-forandforeach.md |
| https://github.com/Fr666/bestJavaer/commits/master/java-basic/java-forandforeach.md |
| bestJavaer | https://github.com/Fr666/bestJavaer/tree/master |
| java-basic | https://github.com/Fr666/bestJavaer/tree/master/java-basic |
| Raw | https://github.com/Fr666/bestJavaer/raw/refs/heads/master/java-basic/java-forandforeach.md |
| https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#for-foreach-iterator-三种遍历方式的比较 |
| https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#习惯用法 |
| https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#速度对比 |
| https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#remove操作三种遍历方式的影响 |
| https://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#for循环的remove |
| https://github.com/Fr666/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://github.com/Fr666/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://github.com/Fr666/bestJavaer/blob/master/java-basic/java-forandforeach.md#后记 |
| https://camo.githubusercontent.com/97bb356ca12f08b4f6bac131238427458748cdc7c17fe7eae860d92cf3a533c2/68747470733a2f2f696d67323032302e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230323030362f313531353131312d32303230303630333136353635393134382d313931333139343038312e706e67 |
|
| 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 |