{"id":1867,"date":"2025-11-28T10:23:31","date_gmt":"2025-11-28T01:23:31","guid":{"rendered":"https:\/\/route-zero.com\/recruit\/?post_type=route&#038;p=1867"},"modified":"2026-01-28T10:23:47","modified_gmt":"2026-01-28T01:23:47","slug":"java%e9%85%8d%e5%88%97%e3%81%a8arraylist%e3%81%ae%e9%81%95%e3%81%84%e5%be%b9%e5%ba%95%e6%af%94%e8%bc%83%ef%bc%81%e5%ae%9f%e5%8b%99%e3%81%a7%e4%bd%bf%e3%81%84%e5%88%86%e3%81%91%e3%82%8b5%e3%81%a4","status":"publish","type":"route","link":"https:\/\/route-zero.com\/recruit\/route\/1867\/","title":{"rendered":"Java\u914d\u5217\u3068ArrayList\u306e\u9055\u3044\u5fb9\u5e95\u6bd4\u8f03\uff01\u5b9f\u52d9\u3067\u4f7f\u3044\u5206\u3051\u308b5\u3064\u306e\u57fa\u6e96"},"content":{"rendered":"<div>\n<h2>\u306f\u3058\u3081\u306b\uff5c\u3053\u306e\u8a18\u4e8b\u3067\u5f97\u3089\u308c\u308b\u4fa1\u5024<\/h2>\n<p>\n    \u300c\u30ec\u30d3\u30e5\u30fc\u3067\u300e\u3053\u3053\u306f <strong>ArrayList<\/strong> \u304c\u826f\u3044\u300f\u3068\u8a00\u308f\u308c\u305f\u3051\u308c\u3069\u3001<br \/>\n    \u306a\u305c <strong>\u914d\u5217<\/strong> \u3067\u306f\u30c0\u30e1\u306a\u306e\u304b\u8aac\u660e\u3067\u304d\u306a\u3044\u2026\u2026\u3002\u300d<\/p>\n<p>    \u79c1\u305f\u3061\u304c\u958b\u767a\u73fe\u5834\u3067\u4f55\u5ea6\u3082\u906d\u9047\u3059\u308b\u3001\u5178\u578b\u7684\u306a\u30e2\u30e4\u30e2\u30e4\u3067\u3059\u3002<br \/>\n    \u30b5\u30a4\u30ba\u56fa\u5b9a\u30fb\u53ef\u5909\u3068\u3044\u3063\u305f\u8868\u9762\u7684\u306a\u9055\u3044\u306f\u77e5\u3063\u3066\u3044\u3066\u3082\u3001<br \/>\n    <strong>\u306a\u305c\u305d\u308c\u304c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5dee\u306b\u3064\u306a\u304c\u308b\u306e\u304b<\/strong>\u307e\u3067\u306f\u66d6\u6627\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002<\/p>\n<p>    \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u305d\u306e\u7591\u554f\u3092<strong>\u30e1\u30e2\u30ea\u69cb\u9020<\/strong>\u3068\u3044\u3046\u8996\u70b9\u304b\u3089\u5206\u89e3\u3057\u307e\u3059\u3002<br \/>\n    \u300c\u306a\u3093\u3068\u306a\u304f\u300d\u3067\u306f\u306a\u304f\u3001<strong>\u6280\u8853\u7684\u6839\u62e0\u3092\u6301\u3063\u3066\u9078\u629e\u3067\u304d\u308b\u72b6\u614b<\/strong>\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002\n  <\/p>\n<hr \/>\n<h2>\u7d50\u8ad6\uff1a\u672c\u8cea\u7684\u306a\u9055\u3044\u306f\u300c\u30b5\u30a4\u30ba\u5909\u66f4\u306e\u53ef\u5426\u300d<\/h2>\n<p>\n    \u307e\u305a\u7d50\u8ad6\u3067\u3059\u3002<br \/>\n    \u4e21\u8005\u306e\u6700\u3082\u91cd\u8981\u306a\u9055\u3044\u306f\u3001<strong>\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u308b\u304b\u3069\u3046\u304b<\/strong>\u306b\u3042\u308a\u307e\u3059\u3002\n  <\/p>\n<ul>\n<li><strong>\u914d\u5217 (Array)<\/strong>\uff1a\u4f5c\u6210\u6642\u306b\u30b5\u30a4\u30ba\u304c\u6c7a\u307e\u308a\u3001\u305d\u306e\u5f8c\u306f\u5909\u66f4\u3067\u304d\u306a\u3044<strong>\u56fa\u5b9a\u9577<\/strong>\u69cb\u9020<\/li>\n<li><strong>ArrayList<\/strong>\uff1a\u8981\u7d20\u6570\u306b\u5fdc\u3058\u3066\u5185\u90e8\u30b5\u30a4\u30ba\u304c\u5909\u5316\u3059\u308b<strong>\u53ef\u5909\u9577<\/strong>\u69cb\u9020<\/li>\n<\/ul>\n<p>\u3053\u306e\u5dee\u304c\u3001\u901f\u5ea6\u30fb\u30e1\u30e2\u30ea\u52b9\u7387\u30fb\u8a2d\u8a08\u601d\u60f3\u306b\u76f4\u7d50\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\u914d\u5217 (Array) \u3068\u306f\u4f55\u304b<\/h2>\n<p>\n    <strong>\u914d\u5217<\/strong>\u306f\u3001\u540c\u4e00\u578b\u30c7\u30fc\u30bf\u3092<strong>\u9023\u7d9a\u3057\u305f\u30e1\u30e2\u30ea\u9818\u57df<\/strong>\u306b\u683c\u7d0d\u3059\u308b\u6700\u5c0f\u69cb\u6210\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002<br \/>\n    \u69cb\u9020\u304c\u5358\u7d14\u306a\u5206\u3001<strong>\u53c2\u7167\u51e6\u7406\u304c\u6975\u3081\u3066\u9ad8\u901f<\/strong>\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002\n  <\/p>\n<pre><code class=\"language-java\">\r\nint[] numbers = new int[3];\r\nnumbers[0] = 10;\r\nnumbers[1] = 20;\r\nnumbers[2] = 30;\r\n  <\/code><\/pre>\n<ul>\n<li>\u30e1\u30e2\u30ea\u914d\u7f6e\u304c\u56fa\u5b9a<\/li>\n<li>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30a2\u30af\u30bb\u30b9\u306f\u4e00\u5b9a\u6642\u9593\uff08O(1)\uff09<\/li>\n<li>\u30b5\u30a4\u30ba\u5909\u66f4\u306f\u4e0d\u53ef<\/li>\n<\/ul>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u914d\u5217\uff08Array\uff09<\/strong><br \/>\n      \u8907\u6570\u306e\u540c\u3058\u578b\u306e\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u3066\u7ba1\u7406\u3067\u304d\u308b\u30c7\u30fc\u30bf\u69cb\u9020\u3002Java\u3067\u306f\u300cint[]\u300d\u306a\u3069\u3067\u5ba3\u8a00\u3057\u3001\u8981\u7d20\u6570\u306f\u4f5c\u6210\u6642\u306b\u6c7a\u307e\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30e1\u30e2\u30ea\u9818\u57df<\/strong><br \/>\n      \u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30c7\u30fc\u30bf\u3092\u4e00\u6642\u7684\u306b\u4fdd\u5b58\u3059\u308b\u5834\u6240\u3002\u914d\u5217\u306f\u3053\u306e\u9818\u57df\u306b\u9023\u7d9a\u3057\u3066\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aO(1)<\/strong><br \/>\n      \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306e\u8a08\u7b97\u91cf\u3092\u8868\u3059\u8a18\u53f7\u3067\u300c\u4e00\u5b9a\u6642\u9593\u3067\u51e6\u7406\u3067\u304d\u308b\u300d\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>ArrayList \u3068\u306f\u4f55\u304b<\/h2>\n<p>\n    <strong>ArrayList<\/strong>\u306f\u3001<strong>\u914d\u5217\u3092\u5185\u90e8\u306b\u6301\u3064<\/strong>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u3067\u3059\u3002<br \/>\n    \u30b5\u30a4\u30ba\u7ba1\u7406\u3092\u30af\u30e9\u30b9\u5074\u304c\u80a9\u4ee3\u308f\u308a\u3057\u3066\u304f\u308c\u308b\u305f\u3081\u3001\u79c1\u305f\u3061\u306f\u8981\u7d20\u6570\u3092\u610f\u8b58\u305b\u305a\u306b\u6271\u3048\u307e\u3059\u3002\n  <\/p>\n<pre><code class=\"language-java\">\r\nArrayList&lt;String&gt; names = new ArrayList&lt;&gt;();\r\nnames.add(\"\u7530\u4e2d\");\r\nnames.add(\"\u9234\u6728\");\r\nnames.add(\"\u4f50\u85e4\");\r\n  <\/code><\/pre>\n<ul>\n<li>\u5185\u90e8\u5b9f\u88c5\u306f\u914d\u5217<\/li>\n<li>\u8981\u7d20\u8ffd\u52a0\u6642\u306b\u81ea\u52d5\u30ea\u30b5\u30a4\u30ba<\/li>\n<li>\u64cd\u4f5cAPI\u304c\u8c4a\u5bcc<\/li>\n<\/ul>\n<p>\n    \uff08Java\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3084\u30ea\u30b9\u30c8\u578b\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1100\/\" target=\"_blank\" rel=\"noopener\">Spring Boot\u5b9f\u8df5\u30ac\u30a4\u30c9\uff5cList\u578b\u30fbMap\u578b\u306e\u9055\u3044\u3068Bean\u30af\u30e9\u30b9\u306e\u57fa\u790e\uff06\u5fdc\u7528<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aArrayList<\/strong><br \/>\n      Java\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e00\u3064\u3002\u5185\u90e8\u7684\u306b\u306f\u914d\u5217\u3092\u4f7f\u3044\u3001\u8981\u7d20\u306e\u8ffd\u52a0\u30fb\u524a\u9664\u304c\u7c21\u5358\u306b\u3067\u304d\u308b\u53ef\u5909\u9577\u30ea\u30b9\u30c8\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong><br \/>\n      \u8907\u6570\u306e\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u3066\u6271\u3046\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3002ArrayList\u3084HashMap\u306a\u3069\u304c\u542b\u307e\u308c\u308b\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>5\u3064\u306e\u89b3\u70b9\u3067\u6bd4\u8f03\uff1a\u914d\u5217 vs ArrayList<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u89b3\u70b9<\/th>\n<th>\u914d\u5217<\/th>\n<th>ArrayList<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30b5\u30a4\u30ba<\/td>\n<td>\u56fa\u5b9a\u9577<\/td>\n<td>\u53ef\u5909\u9577<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u7167\u901f\u5ea6<\/td>\n<td>\u975e\u5e38\u306b\u9ad8\u901f<\/td>\n<td>\u9ad8\u901f\uff08\u308f\u305a\u304b\u306a\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3042\u308a\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u8ffd\u52a0\u30fb\u524a\u9664<\/td>\n<td>\u4e0d\u5411\u304d<\/td>\n<td>\u5bb9\u6613<\/td>\n<\/tr>\n<tr>\n<td>\u6271\u3048\u308b\u578b<\/td>\n<td>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6 \/ \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td>\n<td>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u307f<\/td>\n<\/tr>\n<tr>\n<td>\u6a5f\u80fd<\/td>\n<td>\u6700\u5c0f\u9650<\/td>\n<td>\u8c4a\u5bcc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n    \u91cd\u8981\u306a\u306e\u306f\u300c\u3069\u3061\u3089\u304c\u512a\u308c\u3066\u3044\u308b\u304b\u300d\u3067\u306f\u306a\u304f\u3001<br \/>\n    <strong>\u7528\u9014\u306b\u5bfe\u3057\u3066\u3069\u3061\u3089\u304c\u9069\u5207\u304b<\/strong>\u3067\u3059\u3002\n  <\/p>\n<hr \/>\n<h2>\u306a\u305c\u6027\u80fd\u5dee\u304c\u51fa\u308b\u306e\u304b\uff1a\u30e1\u30e2\u30ea\u69cb\u9020\u306e\u9055\u3044<\/h2>\n<h3>\u25a0 \u914d\u5217\u304c\u9ad8\u901f\u306a\u7406\u7531<\/h3>\n<p>\n    \u914d\u5217\u306f\u3001\u30e1\u30e2\u30ea\u4e0a\u306b<strong>\u9023\u7d9a\u914d\u7f6e<\/strong>\u3055\u308c\u307e\u3059\u3002<br \/>\n    \u305d\u306e\u305f\u3081\u3001\u8981\u7d20\u30a2\u30af\u30bb\u30b9\u306f\u6b21\u306e\u8a08\u7b97\u3060\u3051\u3067\u5b8c\u4e86\u3057\u307e\u3059\u3002\n  <\/p>\n<pre><code>\r\n\u5148\u982d\u30a2\u30c9\u30ec\u30b9 + (index \u00d7 \u30c7\u30fc\u30bf\u30b5\u30a4\u30ba)\r\n  <\/code><\/pre>\n<p>\u5206\u5c90\u3084\u63a2\u7d22\u304c\u4e0d\u8981\u306a\u305f\u3081\u3001CPU\u30ad\u30e3\u30c3\u30b7\u30e5\u52b9\u7387\u3082\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u9023\u7d9a\u914d\u7f6e<\/strong><br \/>\n      \u30c7\u30fc\u30bf\u304c\u30e1\u30e2\u30ea\u4e0a\u3067\u9014\u5207\u308c\u305a\u4e26\u3093\u3067\u3044\u308b\u72b6\u614b\u3002CPU\u304c\u52b9\u7387\u3088\u304f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h3>\u25a0 ArrayList\u3067\u767a\u751f\u3059\u308b\u30b3\u30b9\u30c8<\/h3>\n<p><strong>ArrayList<\/strong>\u306f\u5bb9\u91cf\u3092\u8d85\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u51e6\u7406\u304c\u8d70\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u3088\u308a\u5927\u304d\u306a\u914d\u5217\u3092\u65b0\u898f\u78ba\u4fdd<\/li>\n<li>\u65e2\u5b58\u30c7\u30fc\u30bf\u3092\u3059\u3079\u3066\u30b3\u30d4\u30fc<\/li>\n<li>\u53e4\u3044\u914d\u5217\u3092\u7834\u68c4<\/li>\n<\/ul>\n<p>\n    \u3053\u306e<strong>\u5168\u4ef6\u30b3\u30d4\u30fc<\/strong>\u304c\u3001\u8ffd\u52a0\u51e6\u7406\u306e\u30b3\u30b9\u30c8\u6e90\u3067\u3059\u3002<br \/>\n    \u305f\u3060\u3057\u5e73\u5747\u8a08\u7b97\u91cf\u306f O(1) \u306b\u8fd1\u304f\u3001\u901a\u5e38\u7528\u9014\u3067\u306f\u554f\u984c\u306b\u306a\u308a\u307e\u305b\u3093\u3002\n  <\/p>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u5168\u4ef6\u30b3\u30d4\u30fc<\/strong><br \/>\n      \u914d\u5217\u306e\u30b5\u30a4\u30ba\u3092\u8d85\u3048\u305f\u3068\u304d\u3001\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u65b0\u3057\u3044\u914d\u5217\u306b\u79fb\u3057\u66ff\u3048\u308b\u51e6\u7406\u3002\u3053\u308c\u304c\u8ffd\u52a0\u6642\u306e\u30b3\u30b9\u30c8\u5897\u52a0\u306e\u539f\u56e0\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u5b9f\u52d9\u5411\u3051\u5224\u65ad\u30d5\u30ed\u30fc<\/h2>\n<ul>\n<li>\u8981\u7d20\u6570\u306f\u6700\u521d\u304b\u3089\u78ba\u5b9a\u3057\u3066\u3044\u308b\u304b\uff1f \u2192 Yes\uff1a\u914d\u5217 \/ No\uff1aArrayList<\/li>\n<li>\u983b\u7e41\u306a\u8ffd\u52a0\u30fb\u524a\u9664\u304c\u3042\u308b\u304b\uff1f \u2192 Yes\uff1aArrayList<\/li>\n<li>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3092\u5927\u91cf\u306b\u6271\u3044\u3001\u6027\u80fd\u6700\u512a\u5148\u304b\uff1f \u2192 Yes\uff1a\u914d\u5217 \/ No\uff1aArrayList<\/li>\n<\/ul>\n<p>\u591a\u304f\u306e\u696d\u52d9\u30a2\u30d7\u30ea\u3067\u306f\u3001<strong>ArrayList\u304c\u7b2c\u4e00\u9078\u629e<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\u5b9f\u52d9\u3067\u30cf\u30de\u308a\u3084\u3059\u30443\u3064\u306e\u7f60<\/h2>\n<h3>\u2460 Arrays.asList() \u306f\u53ef\u5909\u3067\u306f\u306a\u3044<\/h3>\n<pre><code class=\"language-java\">\r\nList&lt;String&gt; list = Arrays.asList(\"a\", \"b\", \"c\");\r\nlist.add(\"d\"); \/\/ UnsupportedOperationException\r\n  <\/code><\/pre>\n<p>\u5bfe\u7b56\uff1a<\/p>\n<pre><code class=\"language-java\">\r\nList&lt;String&gt; list = new ArrayList&lt;&gt;(Arrays.asList(\"a\", \"b\", \"c\"));\r\n  <\/code><\/pre>\n<p>\n    \uff08Java\u306e\u30a8\u30e9\u30fc\u3084\u4f8b\u5916\u306e\u539f\u56e0\u30fb\u5bfe\u7b56\u306b\u3064\u3044\u3066\u306f\u300e<a href=\"https:\/\/route-zero.com\/recruit\/route\/1624\/\" target=\"_blank\" rel=\"noopener\">Spring Boot NullPointerException\u5b8c\u5168\u5bfe\u7b56\uff5c3\u5927\u539f\u56e0\u3068\u5b9f\u88c5\u4f8b\u307e\u3068\u3081<\/a\n    >\u300f\u3082\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09\n  <\/p>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aArrays.asList()<\/strong><br \/>\n      \u914d\u5217\u3092\u30ea\u30b9\u30c8\u306b\u5909\u63db\u3059\u308bJava\u306e\u30e1\u30bd\u30c3\u30c9\u3002\u305f\u3060\u3057\u751f\u6210\u3055\u308c\u308b\u30ea\u30b9\u30c8\u306f\u30b5\u30a4\u30ba\u5909\u66f4\u4e0d\u53ef\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aUnsupportedOperationException<\/strong><br \/>\n      \u5b9f\u884c\u6642\u306b\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u64cd\u4f5c\u3092\u884c\u3063\u305f\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u4f8b\u5916\uff08\u30a8\u30e9\u30fc\uff09\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h3>\u2461 ArrayList&lt;int&gt; \u306f\u4f7f\u3048\u306a\u3044<\/h3>\n<p><strong>\u30b8\u30a7\u30cd\u30ea\u30af\u30b9<\/strong>\u306f<strong>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\u306e\u307f<\/strong>\u5bfe\u5fdc\u3067\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>primitive<\/th>\n<th>wrapper<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>int<\/td>\n<td>Integer<\/td>\n<\/tr>\n<tr>\n<td>double<\/td>\n<td>Double<\/td>\n<\/tr>\n<tr>\n<td>boolean<\/td>\n<td>Boolean<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30b8\u30a7\u30cd\u30ea\u30af\u30b9<\/strong><br \/>\n      \u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u3067\u6271\u3046\u30c7\u30fc\u30bf\u578b\u3092\u3001\u5b9f\u884c\u6642\u3067\u306f\u306a\u304f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u6307\u5b9a\u3067\u304d\u308bJava\u306e\u4ed5\u7d44\u307f\u3002ArrayList&lt;String&gt;\u306a\u3069\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b<\/strong><br \/>\n      int\u3084double\u306a\u3069\u3001Java\u306e\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u3044\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9<\/strong><br \/>\n      \u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u306e\u30af\u30e9\u30b9\u3002\u4f8b\uff1aint\u2192Integer\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h3>\u2462 \u30eb\u30fc\u30d7\u4e2d\u306e remove() \u306f\u5371\u967a<\/h3>\n<p>\u62e1\u5f35for\u6587\u4e2d\u306e\u524a\u9664\u306f\u3001<strong>ConcurrentModificationException<\/strong>\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-java\">\r\nnumbers.removeIf(n -&gt; n == 2);\r\n  <\/code><\/pre>\n<blockquote>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1aConcurrentModificationException<\/strong><br \/>\n      \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u30ea\u30b9\u30c8\u306a\u3069\uff09\u3092\u30eb\u30fc\u30d7\u4e2d\u306b\u5909\u66f4\u3057\u305f\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3002\u5b89\u5168\u306b\u64cd\u4f5c\u3059\u308b\u306b\u306fIterator\u3092\u4f7f\u3046\u3002\n    <\/p>\n<p>\n      <strong>\u7528\u8a9e\u89e3\u8aac\uff1a\u62e1\u5f35for\u6587<\/strong><br \/>\n      Java\u306efor-each\u69cb\u6587\u3002\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3084\u914d\u5217\u306e\u5168\u8981\u7d20\u3092\u7c21\u5358\u306b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u304d\u308b\u3002\n    <\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u307e\u3068\u3081\uff1a\u9078\u629e\u57fa\u6e96\u3092\u8a00\u8a9e\u5316\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b<\/h2>\n<ul>\n<li><strong>\u914d\u5217<\/strong>\uff1a\u56fa\u5b9a\u9577\u30fb\u9ad8\u901f\u53c2\u7167\u30fb\u4f4e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9<\/li>\n<li><strong>ArrayList<\/strong>\uff1a\u53ef\u5909\u9577\u30fb\u9ad8\u3044\u67d4\u8edf\u6027\u30fb\u5b9f\u52d9\u5411\u304d<\/li>\n<li>\u6027\u80fd\u5dee\u306e\u6b63\u4f53\u306f<strong>\u30e1\u30e2\u30ea\u914d\u7f6e\u3068\u30b3\u30d4\u30fc\u30b3\u30b9\u30c8<\/strong><\/li>\n<\/ul>\n<p>\n    \u5224\u65ad\u7406\u7531\u3092\u8aac\u660e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3068\u3001<br \/>\n    \u30ec\u30d3\u30e5\u30fc\u6307\u6458\u306f\u300c\u4fee\u6b63\u300d\u304b\u3089\u300c\u8a2d\u8a08\u8b70\u8ad6\u300d\u306b\u5909\u308f\u308a\u307e\u3059\u3002\n  <\/p>\n<p>\u305c\u3072\u624b\u5143\u306e\u30b3\u30fc\u30c9\u3067\u3001\u914d\u5217\u3068ArrayList\u3092\u610f\u8b58\u7684\u306b\u4f7f\u3044\u5206\u3051\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n","protected":false},"featured_media":1868,"template":"","_links":{"self":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route\/1867"}],"collection":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/route"}],"about":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/types\/route"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media\/1868"}],"wp:attachment":[{"href":"https:\/\/route-zero.com\/recruit\/wp-json\/wp\/v2\/media?parent=1867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}