{"id":13391,"date":"2020-11-26T13:53:19","date_gmt":"2020-11-26T21:53:19","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13391"},"modified":"2023-12-01T04:05:02","modified_gmt":"2023-12-01T12:05:02","slug":"java-continue","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-continue\/","title":{"rendered":"How to Use the Java continue Statement"},"content":{"rendered":"\n<p><em>The Java continue statement stops one iteration in a loop and continues to the next iteration. This statement lets you skip particular iterations without stopping a loop entirely. Continue statements work in for and while loops.<\/em><\/p>\n\n\n\n<p><a href=\"https:\/\/careerkarma.com\/blog\/java-for-each-loops\/\">Java for<\/a> and while loops automate and repeat tasks. There may be an occasion where you want to skip part of a loop and allow the program to continue executing the loop.<\/p>\n\n\n\n<p>For instance, say you are building a program that calculates whether a student has passed or failed a test. You may want to skip over calculating a specific student\u2019s grade.<\/p>\n\n\n\n<p>That\u2019s where the <em>continue<\/em> statement comes in. The Java continue statement is used to skip the current iteration of a loop in Java. This tutorial will discuss using the Java continue statement, with reference to examples to aid your understanding.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java continue Statement<\/h2>\n\n\n\n<p>The Java continue statement skips the current iteration in a loop, such as a for or a while loop. Once a continue statement is executed, the next iteration of the loop begins.<\/p>\n\n\n\n<p>Here\u2019s the syntax for the Java <em>continue<\/em> statement:\n\n<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>continue;<\/pre><\/div>\n\n\n\n<p>continue is a keyword. This means the continue statement stands alone in a program. The <em>continue<\/em> keyword is often part of a <a href=\"https:\/\/careerkarma.com\/blog\/if-else-java\/\">Java if statement<\/a> to determine whether a certain condition is met. You can use a continue statement in a <a href=\"https:\/\/careerkarma.com\/blog\/java-for-each-loops\/\">Java for loop<\/a> or a Java <a href=\"https:\/\/careerkarma.com\/blog\/while-loop-java\/\">while loop<\/a>.<\/p>\n\n\n\n<p>Let\u2019s walk through an example to discuss how to use the <em>continue<\/em> statement in Java. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java continue Statement Example<\/h2>\n\n\n\n<p>Suppose we are creating a program that calculates whether each student in a fifth-grade math class passed their recent test. This program should loop through the lists of student names and grades and print out the student\u2019s name alongside whether they have passed.\n\n<\/p>\n\n\n\n<p>Students whose grade is higher than 17 have passed. Any student whose grade is below 17 has failed.\n\n<\/p>\n\n\n\n<p>However, one student, Lucy, was not present for the test. So, the program should skip calculating whether she passed.\n\n<\/p>\n\n\n\n<p>We could use the following code to calculate whether each student in the class, excluding Lucy, has passed their recent test:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class CalculateTestScores {\n\tpublic static void main(String[] args) {\n\t\tString[] students = {&quot;Mark&quot;, &quot;Bill&quot;, &quot;Lucy&quot;, &quot;Chloe&quot;};\n\t\tint grades[] = {16, 25, 0, 19};\n\n\t\tfor (int i = 0; i &lt; students.length; ++i) {\n\t\t\tif (students[i].equals(&quot;Lucy&quot;)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (grades[i] &gt; 17) {\n\t\t\t\tSystem.out.println(students[i] + &quot; has passed their test with the grade &quot; + grades[i] + &quot;.&quot;);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(students[i] + &quot; has failed their test with the grade &quot; + grades[i] + &quot;.&quot;);\n\t\t\t}\n\t\t}\n\t}\n}\n<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Mark has failed their test with the grade 16.\nBill has passed their test with the grade 25.\nChloe has passed their test with the grade 19.\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">continue Java Example Breakdown<\/h3>\n\n\n\n<p>First, we declare a class called CalculateTestScores, which stores the code for our program. Then we declare two arrays: <em>students<\/em> stores a list of student names and <em>grades<\/em> stores a list of those students\u2019 grades.\n\n<\/p>\n\n\n\n<p>On the next line, we initialize a <em>for<\/em> loop, which iterates through every item in the <em>students<\/em> list. Our program executes the following statements inside the loop:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Checks whether the student\u2019s name is equal to <code>Lucy<\/code> (students[i] == <code>Lucy<\/code>)<ol><li>If the student\u2019s name is equal to <code>Lucy<\/code>, the <code>continue<\/code> statement is executed and the program skips to the next iteration.<\/li><li>If the student\u2019s name is not equal to <code>Lucy<\/code>, the program continues running through the iteration.<\/li><\/ol><\/li><li>Checks if the student\u2019s grade is higher than 17:<ol><li>If so, a message stating <code>[student name] has <\/code><strong><code>passed<\/code><\/strong><code> their test with the grade [grade].<\/code> is printed to the console, where <code>student name<\/code> is the name of the student and <code>grade<\/code> is the student\u2019s numerical grade.<\/li><li>If not, a message stating <code>[student name] has <\/code><strong><code>failed<\/code><\/strong><code> their test with the grade [grade]<\/code>. is printed to the console, where <code>student name<\/code> is the name of the student and <code>grade<\/code> is the student\u2019s numerical grade.<\/li><\/ol><\/li><\/ol>\n\n\n\n<p>When our program reached Lucy\u2019s name, it skipped over calculating her grade.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Another Continue in Java Example<\/h2>\n\n\n\n<p>Let\u2019s suppose we are creating a game for a third grade math class. This game multiplies three numbers between 1 and 10 that are inserted by the user. If the user inserts a number greater than 10, we want to skip over multiplying that number.\n\n<\/p>\n\n\n\n<p>We could use the following code to accomplish this task:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.Scanner;\n\nclass MathGame {\n\tpublic static void main(String[] args) {\n\t\tint total = 1;\n\t\tScanner input = new Scanner(System.in);\n\n\t\tfor (int i = 0; i &lt; 3; ++i) {\n\t\t\tSystem.out.print(&quot;Enter a number: &quot;);\n\t\t\tint number = input.nextInt();\n\n\t\t\tif (number &gt; 10) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttotal = total * number;\n\t\t}\n\t\tSystem.out.println(&quot;Total = &quot; + total);\n\t}\n}\n<\/pre><\/div>\n\n\n\n<p>If we insert the numbers 2, 5, and 4 into our program, we receive the following output:<\/p>\n\n\n\n<p>Enter a number: 2<\/p>\n\n\n\n<p>Enter a number: 5<\/p>\n\n\n\n<p>Enter a number: 4<\/p>\n\n\n\n<p>Total = 40<br><\/p>\n\n\n\n<p>2 x 5 \u00d7 4 is equal to 40. Because all our numbers are below 10, our \u201ccontinue\u201d statement does not execute.  If we inserted 2, 5, and 11 into our code, this response is returned:<\/p>\n\n\n\n<p>Enter a number: 2<\/p>\n\n\n\n<p>Enter a number: 5<\/p>\n\n\n\n<p>Enter a number: 11<\/p>\n\n\n\n<p>Total = 10<br><\/p>\n\n\n\n<p>When we insert the number 11, our <code>continue<\/code> statement is executed, and our program skips over multiplying the value of <code>total<\/code> and 11.<br><\/p>\n\n\n\n<p>The continue statement is often used with the <a href=\"https:\/\/careerkarma.com\/blog\/java-break\">Java break statement<\/a>. <code>break<\/code> terminates the loop within which it is enclosed, whereas <code>continue<\/code> only skips one iteration in a loop and continues the loop.<\/p>\n\n\n\n<p>Our program executes the <em>continue<\/em> statement when we execute the number 11. This means our program skips over multiplying the value of <em>total<\/em> and 11.\n\n<\/p>\n\n\n\n<p>The continue statement is often used with the <a href=\"https:\/\/careerkarma.com\/blog\/java-break\">Java break statement<\/a>. <em>break<\/em> statements terminates the loop within which it is enclosed. <em>continue<\/em> only skips one iteration in a loop and continues the loop.\n\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Labelled continue Java Statement<\/h2>\n\n\n\n<p>A labelled Java continue statement lets you skip to a specified outermost loop. To use the labelled continue statement, specify the continue keyword followed by the name assigned to the outermost loop.<\/p>\n\n\n\n<p>Labelled continue statements skip the execution of a statement that exists inside the outer loop of a program. Loops that contain contain loops are sometimes called nested loops.<\/p>\n\n\n\n<p>Here\u2019s the syntax for a labelled continue statement:\n\n<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>continue label_name;<\/pre><\/div>\n\n\n\n<p>Suppose we have a program that contains two loops, and we want to skip out to the outermost loop. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>label_name:\nwhile (true) {\n\twhile (true) {\n\t\tif (condition_is_met) {\n\t\t\tcontinue label_name;\n\t\t}\n\t}\n}\n<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Java <em>continue<\/em> statement is used to skip over the execution of a particular iteration in a loop.&nbsp;\n\n<\/p>\n\n\n\n<p>This tutorial discussed how to use the Java <em>continue<\/em> statement to control the flow of a program, along with two examples. Additionally, we covered the basics of <em>labelled continue<\/em> statements in Java.\n\n<\/p>\n\n\n\n<p>Now you\u2019re ready to start using the Java <em>continue<\/em> statement like a professional!<\/p>\n\n\n\n<p>If you&#8217;re looking for learning resources to help you master Java, check out our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-java\/\">How to Learn Java guide<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The Java continue statement stops one iteration in a loop and continues to the next iteration. This statement lets you skip particular iterations without stopping a loop entirely. Continue statements work in for and while loops. Java for and while loops automate and repeat tasks. There may be an occasion where you want to skip&hellip;","protected":false},"author":240,"featured_media":13392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-13391","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-java"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Java","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use the Java continue Statement | Career Karma<\/title>\n<meta name=\"description\" content=\"The Java continue statement is used by developers to skip an iteration in a loop. Learn how to use the continue statement in your Java code on Career Karma.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/java-continue\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use the Java continue Statement\" \/>\n<meta property=\"og:description\" content=\"The Java continue statement is used by developers to skip an iteration in a loop. Learn how to use the continue statement in your Java code on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-continue\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-26T21:53:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:05:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"How to Use the Java continue Statement\",\"datePublished\":\"2020-11-26T21:53:19+00:00\",\"dateModified\":\"2023-12-01T12:05:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/\"},\"wordCount\":956,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-continue\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/java-continue\/\",\"name\":\"How to Use the Java continue Statement | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg\",\"datePublished\":\"2020-11-26T21:53:19+00:00\",\"dateModified\":\"2023-12-01T12:05:02+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Java continue statement is used by developers to skip an iteration in a loop. Learn how to use the continue statement in your Java code on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-continue\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-continue\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\/\/careerkarma.com\/blog\/java\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Use the Java continue Statement\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use the Java continue Statement | Career Karma","description":"The Java continue statement is used by developers to skip an iteration in a loop. Learn how to use the continue statement in your Java code on Career Karma.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/careerkarma.com\/blog\/java-continue\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the Java continue Statement","og_description":"The Java continue statement is used by developers to skip an iteration in a loop. Learn how to use the continue statement in your Java code on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/java-continue\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-26T21:53:19+00:00","article_modified_time":"2023-12-01T12:05:02+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-continue\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"How to Use the Java continue Statement","datePublished":"2020-11-26T21:53:19+00:00","dateModified":"2023-12-01T12:05:02+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-continue\/"},"wordCount":956,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-continue\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-continue\/","url":"https:\/\/careerkarma.com\/blog\/java-continue\/","name":"How to Use the Java continue Statement | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg","datePublished":"2020-11-26T21:53:19+00:00","dateModified":"2023-12-01T12:05:02+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Java continue statement is used by developers to skip an iteration in a loop. Learn how to use the continue statement in your Java code on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-continue\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apple-magic-keyboard-with-numeric-pad-on-table-near-wireless-1714205-2.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-continue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/careerkarma.com\/blog\/java\/"},{"@type":"ListItem","position":3,"name":"How to Use the Java continue Statement"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=13391"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13391\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13392"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}