{"id":19152,"date":"2020-07-07T04:34:19","date_gmt":"2020-07-07T11:34:19","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=19152"},"modified":"2023-12-01T03:53:13","modified_gmt":"2023-12-01T11:53:13","slug":"if-else-java","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/if-else-java\/","title":{"rendered":"if&#8230;else Java: A Beginner\u2019s Guide"},"content":{"rendered":"\n<p>When you think about it, there\u2019s a lot of \u201cifs\u201d in our lives. If the grocery store is open, we can go in and buy groceries; otherwise, we cannot. If it\u2019s 12 noon, then it is time to take a lunch break.<br><\/p>\n\n\n\n<p>Programs rely just as much on \u201cifs\u201d as we do. In programming, \u201cifs\u201d are called conditional statements. These statements allow you to run or not run a block of code depending on whether a particular condition is met.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to discuss how if statements work in Java and why they are useful. We\u2019ll walk through an example to demonstrate how they work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">If Statements<\/h2>\n\n\n\n<p>Sometimes, you don\u2019t want a specific line of code to run in your program. That\u2019s where conditional logic comes in. By using an <code>if<\/code> statement, you can evaluate an expression, and depending on the outcome of that expression, run a block of code.<br><\/p>\n\n\n\n<p>The <code>if<\/code> statement evaluates whether a Boolean expression is false or true. If that expression is true, the code will be executed; if the expression is false, nothing will happen. Sometimes, <code>if<\/code> statements are called control flow statements.<br><\/p>\n\n\n\n<p>Open up a new Java file and paste in the following code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class MenuPrices {\n\tpublic static void main(String[] args) {\n\t\tString order = \"Ham Sandwich\";\n\t\tif (order.equals(\"Ham Sandwich\")) {\n\t\t\tSystem.out.println(\"The price of a \" + order + \" is $1.95.\");\n\t\t}\n\t\tSystem.out.println(\"Done\");\n\t}\n}<\/pre><\/div>\n\n\n\n<p>In this code, we have defined a variable called order which holds the string value \u201cHam Sandwich\u201d. We then use an if statement to check whether or order is equal to the term \u201cHam Sandwich\u201d. If it is, the price of a ham sandwich is printed.<br><\/p>\n\n\n\n<p>Run this Java program in your programming environment. You\u2019ll see the following response:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The price of a Ham Sandwich is $1.95.\nDone<\/pre><\/div>\n\n\n\n<p>The order we have specified is \u201cHam Sandwich\u201d, so that line of code is run. Let\u2019s change our order to a chicken sandwich:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>String order = \"Chicken Mayo Sandwich\";\nif (order.equals(\"Ham Sandwich\")) {\n\tSystem.out.println(\"The price of a \" + order + \" is $1.95. \");\n}\nSystem.out.println(\"Done\");<\/pre><\/div>\n\n\n\n<p>Our code returns: Done. The contents of our if statement are not executed because our condition \u2013\u2260 order being equal to \u201cHam Sandwich\u201d \u2013 was not met.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">If Else Statements<\/h2>\n\n\n\n<p>The <code>if<\/code> statement is useful, but what if you want to do something else if your condition doesn\u2019t evaluate to true? That\u2019s where the aptly-named Java if else statement comes in.<br><\/p>\n\n\n\n<p>Let\u2019s say that we want our program to print: <code>This item is not on the menu.<\/code> If it cannot find the order we\u2019ve entered. We could do so by adding an else block to our code:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>String order = \"Chicken Mayo Sandwich\";\nif (order.equals(\"Ham Sandwich\")) {\n\tSystem.out.println(\"The price of a \" + order + \" is $1.95. \");\n}\nSystem.out.println(\"Done\");<\/pre><\/div>\n\n\n\n<p>If our expression evaluates to false, the contents of our <code>else<\/code> statement will execute. When you save and run the program, you&#8217;ll see the following:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>This item is not on the menu.\nDone<\/pre><\/div>\n\n\n\n<p>When we change our order back to  \u201c Ham Sandwich\u201d, the output we received in the last example will be returned.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Else if Statement<\/h2>\n\n\n\n<p><code>if..else<\/code> statements can handle two potential outcomes: whether a condition is met, or whether a condition is not met. We can use a statement called <code>else if<\/code> to evaluate more conditions.<br><\/p>\n\n\n\n<p>Say that we want to check for three different sandwiches in our program. Their prices are:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ham Sandwich: $1.95<\/li>\n\n\n\n<li>Chicken Mayo Sandwich: $2.20<\/li>\n\n\n\n<li>Smoked Salmon Sandwich: $3.00<\/li>\n<\/ul>\n\n\n\n<p>To make our program work, we&#8217;re going to add in a few <code>else if<\/code> statements:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>String order = \"Chicken Mayo Sandwich\";\nif (order.equals(\"Ham Sandwich\")) {\n\tSystem.out.println(\"The price of a \" + order + \" is $1.95. \");\n} else {\n\tSystem.out.println(\"This item is not on the menu.\");\n}\nSystem.out.println(\"Done\");<\/pre><\/div>\n\n\n\n<p>Our program can now return four possible outputs. If we run our above program, we\u2019ll receive the following response:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The price of a Chicken Mayo Sandwich is $2.20.\nDone<\/pre><\/div>\n\n\n\n<p>Let\u2019s change the value of our order variable to  \u201cSmoked Salmon Sandwich\u201d  and run our program again:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The price of a Smoked Salmon Sandwich is $3.00.\nDone<\/pre><\/div>\n\n\n\n<p>You can see that our program is now capable of evaluating multiple different conditions. We could add in as many as we wanted. If we were operating a cafe, we may want to evaluate against ten different conditions, one for each sandwich we sell.<\/p>\n\n\n\n<iframe loading=\"lazy\" frameborder=\"0\" width=\"100%\" height=\"400px\" src=\"https:\/\/repl.it\/@careerkarma\/Java-If-Else?lite=true\"><\/iframe>\n<br>\n<br>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion (and Challenge)<\/h2>\n\n\n\n<p>If statements allow you to control the flow of your program more effectively. The code inside an <code>if<\/code> statement only runs if a specified condition is true. You can use <code>else...if <\/code>statements to check for whether one of many conditions are met, and an <code>else<\/code> statement to do something if no condition is met.<br><\/p>\n\n\n\n<p>Ready for a challenge? Write a program that calculates a student\u2019s grade on a test based on their numerical grades. Here are the grade boundaries for reference:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>85+ is an A<\/li>\n\n\n\n<li>75+ is a B<\/li>\n\n\n\n<li>65+ is a C<\/li>\n\n\n\n<li>50+ is a D<\/li>\n\n\n\n<li>Below 50 is an F<\/li>\n<\/ul>\n\n\n\n<p>Now you\u2019re ready to start writing your own if statements in Java like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"When you think about it, there\u2019s a lot of \u201cifs\u201d in our lives. If the grocery store is open, we can go in and buy groceries; otherwise, we cannot. If it\u2019s 12 noon, then it is time to take a lunch break. Programs rely just as much on \u201cifs\u201d as we do. In programming, \u201cifs\u201d&hellip;","protected":false},"author":240,"featured_media":19154,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-19152","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":"","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>if...else Java: A Beginner\u2019s Guide %<\/title>\n<meta name=\"description\" content=\"if...else statements allow you to control the flow of your programs. On Career Karma, learn how to work with, if, if...else, and else statements in Java.\" \/>\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\/if-else-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"if...else Java: A Beginner\u2019s Guide\" \/>\n<meta property=\"og:description\" content=\"if...else statements allow you to control the flow of your programs. On Career Karma, learn how to work with, if, if...else, and else statements in Java.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/if-else-java\/\" \/>\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-07-07T11:34:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:53:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"if&#8230;else Java: A Beginner\u2019s Guide\",\"datePublished\":\"2020-07-07T11:34:19+00:00\",\"dateModified\":\"2023-12-01T11:53:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/\"},\"wordCount\":697,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/if-else-java\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/\",\"name\":\"if...else Java: A Beginner\u2019s Guide %\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg\",\"datePublished\":\"2020-07-07T11:34:19+00:00\",\"dateModified\":\"2023-12-01T11:53:13+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"if...else statements allow you to control the flow of your programs. On Career Karma, learn how to work with, if, if...else, and else statements in Java.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/if-else-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg\",\"width\":1000,\"height\":563},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/if-else-java\/#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\":\"if&#8230;else Java: A Beginner\u2019s Guide\"}]},{\"@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":"if...else Java: A Beginner\u2019s Guide %","description":"if...else statements allow you to control the flow of your programs. On Career Karma, learn how to work with, if, if...else, and else statements in Java.","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\/if-else-java\/","og_locale":"en_US","og_type":"article","og_title":"if...else Java: A Beginner\u2019s Guide","og_description":"if...else statements allow you to control the flow of your programs. On Career Karma, learn how to work with, if, if...else, and else statements in Java.","og_url":"https:\/\/careerkarma.com\/blog\/if-else-java\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-07T11:34:19+00:00","article_modified_time":"2023-12-01T11:53:13+00:00","og_image":[{"width":1000,"height":563,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"if&#8230;else Java: A Beginner\u2019s Guide","datePublished":"2020-07-07T11:34:19+00:00","dateModified":"2023-12-01T11:53:13+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/"},"wordCount":697,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/if-else-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/","url":"https:\/\/careerkarma.com\/blog\/if-else-java\/","name":"if...else Java: A Beginner\u2019s Guide %","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg","datePublished":"2020-07-07T11:34:19+00:00","dateModified":"2023-12-01T11:53:13+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"if...else statements allow you to control the flow of your programs. On Career Karma, learn how to work with, if, if...else, and else statements in Java.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/if-else-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/07\/james-harrison-UVMPVIRCF5w-unsplash.jpg","width":1000,"height":563},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/if-else-java\/#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":"if&#8230;else Java: A Beginner\u2019s Guide"}]},{"@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\/19152","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=19152"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/19152\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/19154"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=19152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=19152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=19152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}