{"id":1308,"date":"2017-03-03T15:22:19","date_gmt":"2017-03-03T06:22:19","guid":{"rendered":"http:\/\/kuuur.net\/?p=1308"},"modified":"2017-03-03T22:41:01","modified_gmt":"2017-03-03T13:41:01","slug":"for","status":"publish","type":"post","link":"https:\/\/kuuur.net\/?p=1308","title":{"rendered":"JAVA\u306e\u30eb\u30fc\u30d7\u51e6\u7406\uff1afor\u6587"},"content":{"rendered":"<p>JAVA\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u4e00\u3064\u3068\u3057\u3066\u3001while\u6587\u306e\u307b\u304b\u306b\u3001for\u6587\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3042\u308b\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u6c7a\u3081\u3089\u308c\u305f\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u3068\u3044\u3046\u3068\u3053\u308d\u307e\u3067\u306fwhile\u6587\u3068\u4e00\u7dd2\u3067\u3059\u304c\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u5224\u5b9a\u3059\u308b\u5024\u3092\u5909\u5316\u3055\u305b\u308b\u51e6\u7406\u3092\u5148\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<h2>for\u6587<\/h2>\n<p>for\u6587\u306e\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p class=\"source\">for ( \u521d\u671f\u5316\u5f0f; \u6761\u4ef6\u5f0f; \u5909\u5316\u5f0f) {<br \/>\n\u51e6\u7406<br \/>\n}<\/p>\n<p>\u300c\u521d\u671f\u5316\u5f0f\u300d\u3067\u307e\u305a\u6700\u521d\u306b\u6761\u4ef6\u306b\u4f7f\u3046\u5909\u6570\u3092\u521d\u671f\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u300c\u6761\u4ef6\u5f0f\u300d\u3067\u5909\u6570\u306e\u5024\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u300c\u5909\u5316\u5f0f\u300d\u3067\u5909\u6570\u306e\u5024\u3092\u5909\u5316\u3055\u305b\u307e\u3059\u3002<br \/>\n\u300c\u51e6\u7406\u300d\u306f\u3001\u5909\u6570\u306e\u5024\u304c\u6761\u4ef6\u5f0f\u306e\u7d50\u679c\u306b\u5408\u81f4\u3059\u308b\u9593\u306f\u3001\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"source\">for ( int i=0; i&lt;10; i++ ){<br \/>\nSystem.out.println( &#8220;\u4eca\u306e\u5024\u306f&#8221; + i );<br \/>\n}<\/p>\n<p>\u00a0for\u6587\u3067\u306f\u3001\u69cb\u6587\u5185\u3067\u5909\u6570\u5ba3\u8a00\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4e0a\u306e\u4f8b\u3067\u306f\u3001\u5909\u6570i\u3092\u521d\u671f\u5316\u3057\u30660\u3092\u4ee3\u5165\u3057\u3001i\u306e\u5024\u304c10\u3088\u308a\u4e0b\u3067\u3042\u308b\u9650\u308a\u306f\u3001\u300c\u4eca\u306e\u5024\u306f**\u300d\u3068\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n\u8868\u793a\u3057\u305f\u3042\u3068\u3001i\u306e\u5024\u306b1\u3092\u8db3\u3057\u307e\u3059\u3002<\/p>\n<h2>continue\u6587\u3068break\u6587<\/h2>\n<p>continue\u6587\u306f\u3001\u300c\u305d\u306e\u5f8c\u306e\u51e6\u7406\u3092\u305b\u305a\u518d\u5ea6\u30eb\u30fc\u30d7\u51e6\u7406\u306b\u623b\u308b\u300d\u3068\u3044\u3046\u52d5\u4f5c\u3092\u3057\u3001break\u6587\u306f\u3001\u300c\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u629c\u3051\u308b\u300d\u3068\u3044\u3046\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002<\/p>\n<p class=\"source\">for ( int i=0; i&lt;10; i++) {<br \/>\nif ( i==3 ) {<br \/>\nSystem.out.println ( &#8220;\u30eb\u30fc\u30d7\u306b\u623b\u308a\u307e\u3059&#8221; );<br \/>\ncontinue;<br \/>\n}<br \/>\nelse if ( i==8 ) {<br \/>\nSystem.out.println ( &#8220;\u30eb\u30fc\u30d7\u3092\u629c\u3051\u307e\u3059&#8221; );<br \/>\nbreak;<br \/>\n}<br \/>\nSystem.out.println ( &#8220;\u73fe\u5728\u306e\u5024\u306f&#8221; + i );<br \/>\n}<\/p>\n<p>\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306f\u3001i\u304c9\u306b\u306a\u308b\u307e\u3067\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u304c\u3001i\u304c3\u306e\u5834\u5408\u306b\u306f\u300c\u30eb\u30fc\u30d7\u306b\u623b\u308a\u307e\u3059\u300d\u3068\u8868\u793a\u3057\u3066\u30eb\u30fc\u30d7\u306b\u623b\u308a\u307e\u3059\u3002<br \/>\ni\u304c8\u306e\u5834\u5408\u306b\u306f\u300c\u30eb\u30fc\u30d7\u3092\u629c\u3051\u307e\u3059\u300d\u3068\u8868\u793a\u3057\u3066\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JAVA\u306b\u304a\u3051\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u4e00\u3064\u3068\u3057\u3066\u3001while\u6587\u306e\u307b\u304b\u306b\u3001for\u6587\u3068\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u306f\u3042\u308b\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u6c7a\u3081\u3089\u308c\u305f\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3059\u3068\u3044\u3046\u3068\u3053\u308d\u307e\u3067\u306fwhile\u6587\u3068\u4e00\u7dd2\u3067\u3059\u304c\u3001\u6761\u4ef6\u3092&#8230;<span class=\"continue\"><a href=\"https:\/\/kuuur.net\/?p=1308\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1308","post","type-post","status-publish","format-standard","hentry","category-java"],"views":4050,"_links":{"self":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/1308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1308"}],"version-history":[{"count":0,"href":"https:\/\/kuuur.net\/index.php?rest_route=\/wp\/v2\/posts\/1308\/revisions"}],"wp:attachment":[{"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kuuur.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}