{"id":20498,"date":"2020-07-30T10:18:18","date_gmt":"2020-07-30T17:18:18","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=20498"},"modified":"2023-12-01T03:57:07","modified_gmt":"2023-12-01T11:57:07","slug":"fibonacci-java","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/","title":{"rendered":"Fibonacci Java: A Guide"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">A Guide to the Fibonacci Java Algorithm<\/h2>\n\n\n\n<p>The Fibonacci Sequence is a sequence where the next number is calculated by calculating the sum of the previous two numbers.<br><\/p>\n\n\n\n<p>This sequence has its claim to fame in mathematics. It also appears in nature. For instance, most flowers have petals which are arranged like the Fibonacci Sequence.<br><\/p>\n\n\n\n<p>In this guide, we\u2019re going to talk about how to calculate the Fibonacci series of numbers using Java. We\u2019ll walk through two Fibonacci Java algorithms to help you get started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Fibonacci Sequence?<\/h2>\n\n\n\n<p>You probably learned about the Fibonacci Sequence in high school math.&nbsp;<br><\/p>\n\n\n\n<p>The first numbers in the Fibonacci Sequence are 0 and 1. Subsequent numbers are calculated by adding the two preceding numbers together. Let\u2019s take a look at a longer list of the sequence:<\/p>\n\n\n\n<p>0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55<\/p>\n\n\n\n<p>This sequence can go on forever depending on how many numbers you want to calculate.<br><\/p>\n\n\n\n<p>The Fibonacci Sequence can be implemented in two ways:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Using an iterative function<\/li><li>Using a <a href=\"https:\/\/careerkarma.com\/blog\/java-recursion\/\">recursive algorithm<\/a><\/li><\/ul>\n\n\n\n<p>We\u2019ll walk through both of these approaches.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">An Iterative Fibonacci Java Program<\/h2>\n\n\n\n<p>The iterative approach is the best place to start. Iterative programming is when you use a loop, such as a <a href=\"https:\/\/careerkarma.com\/blog\/java-for-each-loops\/\">for loop<\/a>, to iterate through a list and perform a task.<br><\/p>\n\n\n\n<p>Iterative programming allows you to automate repetitive procedures. Because there is a clear formula for how to calculate the next number in the Fibonacci Sequence, we can use an iterative approach to implement the algorithm.<br><\/p>\n\n\n\n<p>Let\u2019s start by declaring a class and method for our program. We\u2019ll also define three <a href=\"https:\/\/careerkarma.com\/blog\/java-variables\/\">variables<\/a> that we will use for our program.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public class FibonacciSequence {\n\tpublic static void main(String[] args) {\n\t\tint number = 5, firstTerm = 0, secondTerm = 1;\n\t}\n}<\/pre><\/div>\n\n\n\n<p>The variable \u201cnumber\u201d tracks how many terms we are going to calculate. \u201cfirstTerm\u201d and \u201csecondTerm\u201d store the first and second values in the sequence, respectively. This will change to store the two items before the one that we\u2019ve just calculated later in our program.<br><\/p>\n\n\n\n<p>Now, let\u2019s write a for loop that calculates the next Fibonacci numbers in the sequence:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for (int i = 0; i &lt; number; ++i) {\n\tSystem.out.println(firstTerm);\n\n\tint nextNumber = firstTerm + secondTerm;\n\tfirstTerm = secondTerm;\n\tsecondTerm = nextNumber;\n}<\/pre><\/div>\n\n\n\n<p>This loop first prints out the value of firstTerm. In the first iteration, this value is 0. Next, the loop calculates the next number by adding firstTerm and secondTerm together.<br><\/p>\n\n\n\n<p>Our code then assigns the value of firstTerm to the value of secondTerm. secondTerm becomes our next number.<br><\/p>\n\n\n\n<p>Let\u2019s run our code and see what happens:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>0\n1\n1\n2\n3<\/pre><\/div>\n\n\n\n<p>Our code has calculated the first five values in the sequence.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A Recursive Fibonacci Java program<\/h2>\n\n\n\n<p>The Fibonacci Sequence can be calculated using a recursive algorithm. This is a <a href=\"https:\/\/careerkarma.com\/blog\/java-methods\/\">function<\/a> that calls itself to solve a problem. A recursive algorithm can be used because there is a consistent formula to use to calculate numbers in the Fibonacci Sequence.<br><\/p>\n\n\n\n<p>Let\u2019s start by initializing our <a href=\"https:\/\/careerkarma.com\/blog\/java-class-object\/\">class<\/a>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class FibonacciSequence {\n}<\/pre><\/div>\n\n\n\n<p>Next, we\u2019ll write a function that uses recursion to calculate the next value in the sequence:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>static void getNextValue(int number, int firstTerm, int secondTerm) {\n\tif (number &gt; 0) {\n\t\tSystem.out.println(firstTerm);\n\n\t\tint nextNumber = firstTerm + secondTerm;\n\tfirstTerm = secondTerm;\n\tsecondTerm = nextNumber;\n\tgetNextValue(number - 1, firstTerm, secondTerm);\n\t}\n}<\/pre><\/div>\n\n\n\n<p>This method adds the values of firstTerm and secondTerm to calculate the next value. This happens as long as the value of \u201cnumber\u201d is greater than 0. \u201cnumber\u201d tracks how many numbers are left to calculate in the sequence.<br><\/p>\n\n\n\n<p>Once the next value has been calculated, the function getNextValue() is recursively called. This time, the value of \u201cnumber\u201d is reduced by one. This is because every time the function is run, a new number is calculated.<br><\/p>\n\n\n\n<p>Let\u2019s write a main program that uses our recursive function and declares the variables we\u2019re going to use:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public static void main(String args[]) {\n\tint number = 5, firstTerm = 0, secondTerm = 1;\n\tgetNextValue(number, firstTerm, secondTerm);\n}<\/pre><\/div>\n\n\n\n<p>\u201cnumber\u201d reflects the number of values we want to calculate. firstTerm is the first term in the list. secondTerm is the second term in the list.<br><\/p>\n\n\n\n<p>When we call the <code>getNextValue<\/code> method, our calculation begins. Let\u2019s run our code to display Fibonacci numbers:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>0\n1\n1\n2\n3<\/pre><\/div>\n\n\n\n<p>The first five values in the Fibonacci Sequence have been calculated!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Fibonacci Sequence is common in mathematics, computing, and nature. The next number in the sequence is calculated by adding the two preceding numbers together. The sequence starts with the numbers 0 and 1.<br><\/p>\n\n\n\n<p>This sequence can be calculated using either an iterative or recursive approach. Now you are ready to calculate the Fibonacci series in Java.<\/p>\n","protected":false},"excerpt":{"rendered":"A Guide to the Fibonacci Java Algorithm The Fibonacci Sequence is a sequence where the next number is calculated by calculating the sum of the previous two numbers. This sequence has its claim to fame in mathematics. It also appears in nature. For instance, most flowers have petals which are arranged like the Fibonacci Sequence.&hellip;","protected":false},"author":240,"featured_media":18513,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-20498","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>Fibovacci Java : A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn how to calculate the Fibonacci Sequence in Java using an iterative program and a recursive function.\" \/>\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\/fibonacci-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fibonacci Java: A Guide\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn how to calculate the Fibonacci Sequence in Java using an iterative program and a recursive function.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/fibonacci-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-30T17:18:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:57:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Fibonacci Java: A Guide\",\"datePublished\":\"2020-07-30T17:18:18+00:00\",\"dateModified\":\"2023-12-01T11:57:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/\"},\"wordCount\":680,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/\",\"name\":\"Fibovacci Java : A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"datePublished\":\"2020-07-30T17:18:18+00:00\",\"dateModified\":\"2023-12-01T11:57:07+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn how to calculate the Fibonacci Sequence in Java using an iterative program and a recursive function.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/fibonacci-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\":\"Fibonacci Java: A 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":"Fibovacci Java : A Step-By-Step Guide | Career Karma","description":"On Career Karma, learn how to calculate the Fibonacci Sequence in Java using an iterative program and a recursive function.","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\/fibonacci-java\/","og_locale":"en_US","og_type":"article","og_title":"Fibonacci Java: A Guide","og_description":"On Career Karma, learn how to calculate the Fibonacci Sequence in Java using an iterative program and a recursive function.","og_url":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-07-30T17:18:18+00:00","article_modified_time":"2023-12-01T11:57:07+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Fibonacci Java: A Guide","datePublished":"2020-07-30T17:18:18+00:00","dateModified":"2023-12-01T11:57:07+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/"},"wordCount":680,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/fibonacci-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/","url":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/","name":"Fibovacci Java : A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","datePublished":"2020-07-30T17:18:18+00:00","dateModified":"2023-12-01T11:57:07+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn how to calculate the Fibonacci Sequence in Java using an iterative program and a recursive function.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/fibonacci-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-java\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sergey-zolkin-_UeY8aTI6d0-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/fibonacci-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":"Fibonacci Java: A 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\/20498","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=20498"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/20498\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18513"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=20498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=20498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=20498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}