{"id":2999,"date":"2021-05-21T19:47:44","date_gmt":"2021-05-21T10:47:44","guid":{"rendered":"https:\/\/loglog.xyz\/?p=2999"},"modified":"2023-09-24T12:55:34","modified_gmt":"2023-09-24T03:55:34","slug":"usage_while_for","status":"publish","type":"post","link":"https:\/\/loglog.xyz\/programming\/usage_while_for","title":{"rendered":"\u3010Java\u5165\u9580\u3011\u7e70\u308a\u8fd4\u3057\u51e6\u7406\uff08while, for\uff09"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u5236\u5fa1\u69cb\u9020\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><ins datetime=\"2021-05-21T09:02:50+00:00\">\u7e70\u308a\u8fd4\u3057\u306b\u306f\u4ee5\u4e0b\u304c\u3042\u308a\u307e\u3059\u3002<\/ins><\/p>\n<ul>\n<li>while\uff08\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u9593\u3060\u3051\u7e70\u308a\u8fd4\u3059\uff09<\/li>\n<li>do-while\uff08\u4e00\u5ea6\u5fc5\u305a\u5b9f\u884c\u3057\u3001\u305d\u306e\u5f8c\u306f\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u9593\u3060\u3051\u7e70\u308a\u8fd4\u3059\uff09<\/li>\n<li>for\uff08\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u9593\u3060\u3051\u7e70\u308a\u8fd4\u3059\uff3b\u7e70\u308a\u8fd4\u3057\u56de\u6570\u3092\u6307\u5b9a\u53ef\u80fd\uff3d\uff09<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001<ins datetime=\"2021-05-21T09:02:50+00:00\">\u7e70\u308a\u8fd4\u3057\u306e\u6700\u4e2d\u306b\u3001\u3042\u308b\u6761\u4ef6\u306b\u9054\u3057\u305f\u3089\u30eb\u30fc\u30d7\u51e6\u7406\u304b\u3089\u629c\u3051\u305f\u304b\u3063\u305f\u308a\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u306e\u307f\u30b9\u30ad\u30c3\u30d7\u3057\u305f\u3044<\/ins>\u3068\u3044\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>break\uff08\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7d42\u4e86\u3059\u308b\uff09<\/li>\n<li>continue\uff08\u6b21\u306e\u30eb\u30fc\u30d7\u306b\u9032\u3080\uff09<\/li>\n<\/ul>\n<h2>\u57fa\u672c\u69cb\u6587<\/h2>\n<h3>while<\/h3>\n<p>()\u5185\u306e\u6761\u4ef6\u304cTrue\u3067\u3042\u308b\u9650\u308a\u3001\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\nwhile\u306e\u51e6\u7406\u304c1\u884c\u306e\u5834\u5408\u3001{}\uff08\u4e2d\u30ab\u30c3\u30b3\uff09\u306f\u7701\u7565\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306fdo-while\u3001for\u306b\u3064\u3044\u3066\u3082\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ while\r\nint count = 0;\r\nwhile(count &lt; 10) {\r\n\tSystem.out.println(\"count is \" + count);\r\n\tcount++;\r\n}\r\n\r\n\/\/ \u7701\u7565\u69cb\u6587\r\nint otherCount = 0;\r\nwhile(otherCount &lt; 10) \r\n\tSystem.out.println(\"otherCount is \" + otherCount++);\r\n\r\n<\/pre>\n<h3>do-while<\/h3>\n<p>\u5fc5\u305a\u6700\u521d\u306e1\u56de\u306f\u51e6\u7406\u304c\u884c\u308f\u308c\u307e\u3059\u3002<br \/>\n\u305d\u306e\u3042\u3068\u306bwhile\u306e\u6761\u4ef6\u5224\u5b9a\u304c\u884c\u308f\u308c\u3001True\u3067\u3042\u308b\u9593\u306f\u7e70\u308a\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ do-while\r\nint age = 10;\r\ndo {\r\n\tSystem.out.println(\"age is \" + age++);\r\n} while(age &lt; 20);\r\n\r\n\/\/ \u7701\u7565\u69cb\u6587\r\nint otherAge = 10;\r\ndo \r\n\tSystem.out.println(\"otherAge is \" + otherAge++);\r\nwhile(otherAge &lt; 20);<\/pre>\n<h3>for<\/h3>\n<p>\u7e70\u308a\u8fd4\u3059\u56de\u6570\u3092\u6307\u5b9a\u3057\u3066\u51e6\u7406\u3092\u884c\u3046\u5834\u5408\u306b\u3088\u304f\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ for\r\nfor (int i = 0; i &lt; 10; i++) {\r\n\tSystem.out.println(\"i is \" + i);\r\n}\r\n\r\n\/\/ \u7701\u7565\u69cb\u6587\r\nfor (int i = 0; i &lt; 10; i++) \r\n\tSystem.out.println(\"i is \" + i);\r\n<\/pre>\n<h3>\u62e1\u5f35for<\/h3>\n<p>\u914d\u5217\u3084Collection\u578b\uff08List\u306a\u3069\uff09\u3092\u30eb\u30fc\u30d7\u3067\u53d6\u5f97\u3057\u3066\u6271\u3046\u3053\u3068\u3092\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002<br \/>\n<strong>for(\u578b \u683c\u7d0d\u5909\u6570\u540d : \u914d\u5217\u307e\u305f\u306fCollection)<\/strong>\u3092\u57fa\u672c\u69cb\u6587\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u914d\u5217\u304c\u7a7a\u306e\u5834\u5408\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u306f\u884c\u308f\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ \u62e1\u5f35for\r\n\/\/ String\u578b\u306e\u914d\u5217(categories)\u3092\u3001String\u578b\u306e\u5909\u6570(category)\u306b\u9806\u6b21\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059\u3002\r\nString[] categories = {\"\u672c\", \"\u8863\u985e\", \"\u5bb6\u96fb\"};\r\nfor (String category: categories) {\r\n\tSystem.out.println(\"category is \" + category);\r\n}\r\n\r\n\/\/\u7701\u7565\u69cb\u6587\r\nfor (String category: categories) \r\n\tSystem.out.println(\"category is \" + category);\r\n\r\n\/\/ \u914d\u5217\u304c\u7a7a\u306e\u5834\u5408\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u306f\u884c\u308f\u308c\u307e\u305b\u3093\r\nString[] clothes = {};\r\nfor (String cloth: clothes) {\r\n\tSystem.out.println(\"category is \" + cloth);\r\n}\r\n<\/pre>\n<h3>break<\/h3>\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u9014\u4e2d\u3067\u7d42\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u5834\u5408\u30015\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ break\r\nfor (int i = 0; i &lt; 10; i++) {\r\n\tif(i == 5) break;\r\n\tSystem.out.println(\"i is \" + i);\r\n}<\/pre>\n<h3>continue<\/h3>\n<p>\u51e6\u7406\u3092\u4e2d\u65ad\u3057\u3066\u3001\u6b21\u306e\u30eb\u30fc\u30d7\u306b\u9032\u307f\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u5834\u5408\u3001\u5076\u6570\uff08\u5272\u3063\u30660\u306b\u306a\u308b\uff09\u306f\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5947\u6570\uff08\u82f1\u8a9e\u3067odd\uff09\u306e\u307f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ continue\r\nfor (int i = 0; i &lt; 10; i++) {\r\n\tif(i % 2 == 0) continue;;\r\n\tSystem.out.println(i + \" is odd\");\r\n}<\/pre>\n<h2>\u5fdc\u7528<\/h2>\n<h3>\u591a\u91cd\u30eb\u30fc\u30d7<\/h3>\n<p>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u4e2d\u306b\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304c\u3042\u308b\u69cb\u9020\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u5834\u5408\u3001i\u30921\u56de\u7e70\u308a\u8fd4\u3059\u5ea6\u306b\u3001j\u30929\u56de\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\ni\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u74061\u56de\u76ee -&gt; j\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304c9\u56de<br \/>\ni\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u74062\u56de\u76ee -&gt; j\u306e\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u304c9\u56de<br \/>\n\u30fb\u30fb\u30fb<br \/>\n\u7d50\u679c\u7684\u306b\u3001\u4e5d\u4e5d\u306e\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ \u591a\u91cd\u30eb\u2015\u30d7\r\nfor (int i = 1; i &lt; 10; i++) {\r\n\tfor (int j = 1; j &lt; 10; j++) {\r\n\t\tSystem.out.println(\"i * j = \" + (i * j));\r\n\t}\r\n}<\/pre>\n<p><strong>\uff08\u30b3\u30e9\u30e0\uff09<\/strong><br \/>\n\u4e00\u89a7\u306e\u4e2d\u306b\u4e00\u89a7\u304c\u3042\u308b\u3088\u3046\u306a\u69cb\u9020\u3092\u3082\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u591a\u91cd\u30eb\u30fc\u30d7\u306f\u30b3\u30fc\u30c9\u304c\u8ffd\u3044\u306b\u304f\u305f\u3081\u3001\u3042\u307e\u308a\u304a\u52e7\u3081\u3057\u307e\u305b\u3093\u3002<br \/>\n\u5c06\u6765\u7684\u306b\u306f\u3001\u3067\u304d\u308b\u3060\u3051\u591a\u91cd\u30eb\u30fc\u30d7\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306a\u8a2d\u8a08\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u7121\u9650\u30eb\u30fc\u30d7<\/h3>\n<p>\u7d42\u4e86\u6761\u4ef6\u304c\u7121\u3044\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3067\u3059\u3002<br \/>\n\u660e\u793a\u7684\u306b\u7121\u9650\u30eb\u30fc\u30d7\u306b\u3059\u308b\u5834\u5408\u3001while\u306e\u6761\u4ef6\u5f0f\u3092\u300ctrue\u300d\u306b\u3059\u308b\u3053\u3068\u3067\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u305f\u307e\u306b\u3001\u30d0\u30b0\u3067\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3042\u307e\u308a\u306b\u51e6\u7406\u304c\u91cd\u304f\u7d42\u4e86\u3057\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u8d77\u3053\u3063\u305f\u3089\u3001\u7121\u9650\u30eb\u30fc\u30d7\u3092\u7591\u3063\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"lang:java decode:true \">\/\/ \u7121\u9650\u30eb\u30fc\u30d7\r\nwhile(true) {\r\n\tSystem.out.println(\"\u7121\u9650\u30eb\u30fc\u30d7\");\r\n}\r\n\r\n\/\/ \u7121\u9650\u30eb\u30fc\u30d7\uff08\u30d0\u30b0\uff09\r\n\/\/ \u30eb\u30fc\u30d7\u56de\u6570\u304c9\u56de\u306b\u9054\u3057\u305f\u3089\u7d42\u4e86\u3059\u308b\u60f3\u5b9a\u3060\u304c\u3001\r\n\/\/ \u30c7\u30af\u30ea\u30e1\u30f3\u30c8(1\u305a\u3064\u6e1b\u7b97)\u3057\u3066\u3044\u308b\u305f\u3081\u7d42\u4e86\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002\r\nint loopCount = 1;\r\nwhile(loopCount &lt; 10) {\r\n\tSystem.out.println(\"\u30eb\u30fc\u30d7\" + loopCount + \"\u56de\u76ee\");\r\n\tloopCount--;\r\n}<\/pre>\n<p><strong>\uff08\u30b3\u30e9\u30e0\uff09<\/strong><br \/>\n\u7121\u9650\u30eb\u30fc\u30d7\u306e\u4f7f\u3044\u3069\u3053\u308d\u306f\u3001\u4f55\u3089\u304b\u306e\u6761\u4ef6\u306b\u306a\u3063\u3066\u7d42\u4e86\u3055\u305b\u308b\u307e\u3067\u305a\u3063\u3068\u52d5\u304b\u3057\u7d9a\u3051\u308b\u305f\u3081\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u79c1\u81ea\u8eab\u306f\u696d\u52d9\u3067\u7121\u9650\u30eb\u30fc\u30d7\u81ea\u4f53\u3092\u5b9f\u88c5\u3059\u308b\u6a5f\u4f1a\u306b\u307e\u3060\u304a\u76ee\u306b\u304b\u304b\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3001\u3042\u307e\u308a\u4f7f\u3046\u3053\u3068\u306f\u306a\u3044\u3082\u306e\u3060\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30e9\u30d9\u30eb<\/h3>\n<p>\u30e9\u30d9\u30eb\u306f<ins datetime=\"2021-05-21T09:02:50+00:00\"><span class=\"ymarker\">break\u3084continue\u306e\u5236\u5fa1\u3092\u79fb\u3059\u7b87\u6240\u3092\u6307\u5b9a\u3067\u304d\u308b\u76ee\u5370<\/span><\/ins>\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u4e5d\u4e5d\u306e\u9014\u4e2d\u3067\u5236\u5fa1\u3092\u79fb\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30fbj\u304c\u5076\u6570\u306e\u3068\u304d\u306f\u51e6\u7406\u3057\u306a\u3044<br \/>\n\u30fbi * j\u304c10\u306b\u306a\u308b\u3068\u304d\u306fi\u306e\u30eb\u30fc\u30d7\u306b\u623b\u308b<\/p>\n<pre class=\"lang:java decode:true \">\/\/ \u30e9\u30d9\u30eb\r\ni: for (int i = 1; i &lt; 10; i++) {\r\nj: \tfor (int j = 1; j &lt; 10; j++) {\r\n\t\tif(j % 2 == 0) continue j;\t\t\/\/ j\u304c\u5076\u6570\u306e\u3068\u304d\u306f\u51e6\u7406\u3057\u306a\u3044\r\n\t\tif(i * j % 10 == 0) continue i; \/\/ i * j\u304c10\u306b\u306a\u308b\u3068\u304d\u306fi\u306e\u30eb\u30fc\u30d7\u306b\u623b\u308b\r\n\t\tSystem.out.println(\"i\"+\"[\"+ i +\"] * j\"+\"[\"+ j +\"] = \" + (i * j));\r\n\t}\r\n}\r\n\r\n\/\/ \u51e6\u7406\u7d50\u679c\r\ni[1] * j[1] = 1\r\ni[1] * j[3] = 3\r\ni[1] * j[5] = 5\r\ni[1] * j[7] = 7\r\ni[1] * j[9] = 9\r\ni[2] * j[1] = 2\r\ni[2] * j[3] = 6\r\ni[3] * j[1] = 3\r\ni[3] * j[3] = 9\r\ni[3] * j[5] = 15\r\ni[3] * j[7] = 21\r\ni[3] * j[9] = 27\r\ni[4] * j[1] = 4\r\ni[4] * j[3] = 12\r\ni[5] * j[1] = 5\r\ni[5] * j[3] = 15\r\ni[5] * j[5] = 25\r\ni[5] * j[7] = 35\r\ni[5] * j[9] = 45\r\ni[6] * j[1] = 6\r\ni[6] * j[3] = 18\r\ni[7] * j[1] = 7\r\ni[7] * j[3] = 21\r\ni[7] * j[5] = 35\r\ni[7] * j[7] = 49\r\ni[7] * j[9] = 63\r\ni[8] * j[1] = 8\r\ni[8] * j[3] = 24\r\ni[9] * j[1] = 9\r\ni[9] * j[3] = 27\r\ni[9] * j[5] = 45\r\ni[9] * j[7] = 63\r\ni[9] * j[9] = 81\r\n\r\n<\/pre>\n<p><strong>\uff08\u30b3\u30e9\u30e0\uff09<\/strong><br \/>\n\u5b9f\u969b\u306b\u306f\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u4ee5\u5916\u3067\u3082\u4f7f\u7528\u3067\u304d\u3001return\u3084try\/throw\uff08\u4f8b\u5916\u51e6\u7406\uff09\u306b\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3057\u3001\u30b3\u30fc\u30c9\u304c\u8ffd\u3044\u306b\u304f\u304f\u306a\u308b\u305f\u3081\u3001\u591a\u7528\u3059\u308b\u3053\u3068\u306f\u304a\u52e7\u3081\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u3082\u3057<a href=\"https:\/\/www.oracle.com\/jp\/education\/certification\/jse11-5570635-ja.html\" rel=\"noopener\" target=\"_blank\">Java Silver<\/a>\u3092\u53d7\u9a13\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u51fa\u984c\u3055\u308c\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u5185\u5bb9\u306a\u306e\u3067\u3001\u7406\u89e3\u3057\u3066\u304a\u304f\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Java Silver\u3092\u53d7\u9a13\u3059\u308b\u5834\u5408\u306f\u3001<a href=\"\/\/af.moshimo.com\/af\/c\/click?a_id=4155236&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062&amp;url=https%3A%2F%2Fwww.amazon.co.jp%2Fdp%2F4295007625\" rel=\"nofollow\" referrerpolicy=\"no-referrer-when-downgrade\">\u5fb9\u5e95\u653b\u7565Java SE 11 Silver\u554f\u984c\u96c6[1Z0-815]\u5bfe\u5fdc\uff08\u901a\u79f0\uff1a\u9ed2\u672c\uff09<\/a><img decoding=\"async\" src=\"\/\/i.moshimo.com\/af\/i\/impression?a_id=4155236&amp;p_id=170&amp;pc_id=185&amp;pl_id=4062\" alt=\"\" width=\"1\" height=\"1\" style=\"border: none;\" \/>\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<br \/>\n\u5341\u5206\u306a\u7df4\u7fd2\u554f\u984c\u3068\u672c\u756a\u8a66\u9a13\u76f8\u5f53\u306e\u7dcf\u4ed5\u4e0a\u3052\u554f\u984c\u304c2\u56de\u5206\u3042\u308a\u3001\u8a66\u9a13\u5bfe\u7b56\u306f\u3053\u308c\u3060\u3051\u3067\u5145\u5206\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<ul>\n<li>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u306f\u3001while \/ do-while \/ for\u6587\u304c\u3042\u308b\u3002<\/li>\n<li>break, continue\u306b\u3088\u308a\u3001\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u9014\u4e2d\u3067\u3082\u7d42\u4e86\u3057\u305f\u308a\u3001\u6b21\u306e\u30eb\u30fc\u30d7\u3092\u884c\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<li>\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306b\u306f\u3001\u591a\u91cd\u30eb\u30fc\u30d7\u3068\u7121\u9650\u30eb\u30fc\u30d7\u3068\u3044\u3046\u4f7f\u3044\u65b9\u3082\u3042\u308b\u3002<\/li>\n<li>\u30e9\u30d9\u30eb\u306f\u53ef\u8aad\u6027\u304c\u60aa\u304f\u306a\u308b\u306e\u3067\u591a\u7528\u306f\u907f\u3051\u308b\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u7e70\u308a\u8fd4\u3057\u51e6\u7406\u306e\u5236\u5fa1\u69cb\u9020\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002 \u7e70\u308a\u8fd4\u3057\u306b\u306f\u4ee5\u4e0b\u304c\u3042\u308a\u307e\u3059\u3002 while\uff08\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u9593\u3060\u3051\u7e70\u308a\u8fd4\u3059\uff09 do-while\uff08\u4e00\u5ea6\u5fc5\u305a\u5b9f\u884c\u3057\u3001\u305d\u306e\u5f8c\u306f\u6761\u4ef6\u306b\u4e00\u81f4\u3059\u308b\u9593\u3060\u3051\u7e70\u308a\u8fd4\u3059\uff09 for\uff08\u6761\u4ef6\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2913,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"{\"3a0ddb8a\":{\"pv\":44,\"imp\":27}}","footnotes":""},"categories":[2,65],"tags":[54,175,183,184],"class_list":["post-2999","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-java","tag-java","tag-175","tag-while","tag-for"],"_links":{"self":[{"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/posts\/2999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/comments?post=2999"}],"version-history":[{"count":6,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/posts\/2999\/revisions"}],"predecessor-version":[{"id":4100,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/posts\/2999\/revisions\/4100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/media\/2913"}],"wp:attachment":[{"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/media?parent=2999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/categories?post=2999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loglog.xyz\/wp-json\/wp\/v2\/tags?post=2999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}