| route-pattern | /:user_id/:repository/blob/*name(/*path) |
| route-controller | blob |
| route-action | show |
| fetch-nonce | v2:6c4196d2-1ea2-d111-2e88-2f508e11f29d |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DC78:354AFA:DF058:140E35:6A4E63A7 |
| html-safe-nonce | 38481f193b96fd1079eb5e6a16f88f70240a5934f0c1d9baf5f6a559528cd246 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzc4OjM1NEFGQTpERjA1ODoxNDBFMzU6NkE0RTYzQTciLCJ2aXNpdG9yX2lkIjoiMzIxNzg2NDE1MDc3MzI5Mzk5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 14cf6cffc1e70c8c5c5b1a84d21a47088f611f73052a1545bd33fd6a8dc76f93 |
| hovercard-subject-tag | repository:267277939 |
| 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/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md |
| twitter:image | https://opengraph.githubassets.com/eb14ec5b7de34ecafb012b92898c7f91ab3ba2be378f846706180e098049d7c2/lpcman/JavaGuide |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb14ec5b7de34ecafb012b92898c7f91ab3ba2be378f846706180e098049d7c2/lpcman/JavaGuide |
| og:image:alt | 「Java学习+面试指南」一份涵盖大部分Java程序员所需要掌握的核心知识。. Contribute to lpcman/JavaGuide 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 | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-cache |
| go-import | github.com/lpcman/JavaGuide git https://github.com/lpcman/JavaGuide.git |
| octolytics-dimension-user_id | 4230823 |
| octolytics-dimension-user_login | lpcman |
| octolytics-dimension-repository_id | 267277939 |
| octolytics-dimension-repository_nwo | lpcman/JavaGuide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 132464395 |
| octolytics-dimension-repository_parent_nwo | Snailclimb/JavaGuide |
| octolytics-dimension-repository_network_root_id | 132464395 |
| octolytics-dimension-repository_network_root_nwo | Snailclimb/JavaGuide |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flpcman%2FJavaGuide%2Fblob%2Fmaster%2Fdocs%2Fjava%2Fbasic%2FArrays%2CCollectionsCommonMethods.md |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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 |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flpcman%2FJavaGuide%2Fblob%2Fmaster%2Fdocs%2Fjava%2Fbasic%2FArrays%2CCollectionsCommonMethods.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=lpcman%2FJavaGuide |
| Reload | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md |
| Reload | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md |
| Reload | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md |
|
lpcman
| https://github.com/lpcman |
| JavaGuide | https://github.com/lpcman/JavaGuide |
| Snailclimb/JavaGuide | https://github.com/Snailclimb/JavaGuide |
|
Notifications
| https://github.com/login?return_to=%2Flpcman%2FJavaGuide |
|
Fork
0
| https://github.com/login?return_to=%2Flpcman%2FJavaGuide |
|
Star
0
| https://github.com/login?return_to=%2Flpcman%2FJavaGuide |
|
Code
| https://github.com/lpcman/JavaGuide |
|
Pull requests
0
| https://github.com/lpcman/JavaGuide/pulls |
|
Actions
| https://github.com/lpcman/JavaGuide/actions |
|
Projects
| https://github.com/lpcman/JavaGuide/projects |
|
Security and quality
0
| https://github.com/lpcman/JavaGuide/security |
|
Insights
| https://github.com/lpcman/JavaGuide/pulse |
|
Code
| https://github.com/lpcman/JavaGuide |
|
Pull requests
| https://github.com/lpcman/JavaGuide/pulls |
|
Actions
| https://github.com/lpcman/JavaGuide/actions |
|
Projects
| https://github.com/lpcman/JavaGuide/projects |
|
Security and quality
| https://github.com/lpcman/JavaGuide/security |
|
Insights
| https://github.com/lpcman/JavaGuide/pulse |
| https://github.com/lpcman/JavaGuide |
| JavaGuide | https://github.com/lpcman/JavaGuide/tree/master |
| docs | https://github.com/lpcman/JavaGuide/tree/master/docs |
| java | https://github.com/lpcman/JavaGuide/tree/master/docs/java |
| basic | https://github.com/lpcman/JavaGuide/tree/master/docs/java/basic |
| History | https://github.com/lpcman/JavaGuide/commits/master/docs/java/basic/Arrays%2CCollectionsCommonMethods.md |
| https://github.com/lpcman/JavaGuide/commits/master/docs/java/basic/Arrays%2CCollectionsCommonMethods.md |
| JavaGuide | https://github.com/lpcman/JavaGuide/tree/master |
| docs | https://github.com/lpcman/JavaGuide/tree/master/docs |
| java | https://github.com/lpcman/JavaGuide/tree/master/docs/java |
| basic | https://github.com/lpcman/JavaGuide/tree/master/docs/java/basic |
| Raw | https://github.com/lpcman/JavaGuide/raw/refs/heads/master/docs/java/basic/Arrays,CollectionsCommonMethods.md |
| Collections 工具类和 Arrays 工具类常见方法 | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#collections-%E5%B7%A5%E5%85%B7%E7%B1%BB%E5%92%8C-arrays-%E5%B7%A5%E5%85%B7%E7%B1%BB%E5%B8%B8%E8%A7%81%E6%96%B9%E6%B3%95 |
| Collections | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#collections |
| 排序操作 | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E6%8E%92%E5%BA%8F%E6%93%8D%E4%BD%9C |
| 查找,替换操作 | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E6%9F%A5%E6%89%BE%E6%9B%BF%E6%8D%A2%E6%93%8D%E4%BD%9C |
| 同步控制 | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E5%90%8C%E6%AD%A5%E6%8E%A7%E5%88%B6 |
| Arrays类的常见操作 | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#arrays%E7%B1%BB%E7%9A%84%E5%B8%B8%E8%A7%81%E6%93%8D%E4%BD%9C |
| 排序 : sort() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E6%8E%92%E5%BA%8F--sort |
| 查找 : binarySearch() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E6%9F%A5%E6%89%BE--binarysearch |
| 比较: equals() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E6%AF%94%E8%BE%83-equals |
| 填充 : fill() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E5%A1%AB%E5%85%85--fill |
| 转列表 asList() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E8%BD%AC%E5%88%97%E8%A1%A8-aslist |
| 转字符串 toString() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E8%BD%AC%E5%AD%97%E7%AC%A6%E4%B8%B2-tostring |
| 复制 copyOf() | https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#%E5%A4%8D%E5%88%B6-copyof |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#collections-工具类和-arrays-工具类常见方法 |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#collections |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#排序操作 |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#查找替换操作 |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#同步控制 |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#collections还可以设置不可变集合提供了如下三类方法 |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#arrays类的常见操作 |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#排序--sort |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#查找--binarysearch |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#比较-equals |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#填充--fill |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#转列表-aslist |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#转字符串-tostring |
| https://github.com/lpcman/JavaGuide/blob/master/docs/java/basic/Arrays,CollectionsCommonMethods.md#复制-copyof |
|
| 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 |