{"id":13489,"date":"2020-03-18T15:32:08","date_gmt":"2020-03-18T22:32:08","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13489"},"modified":"2023-12-01T02:33:25","modified_gmt":"2023-12-01T10:33:25","slug":"java-string-equals","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-string-equals\/","title":{"rendered":"Java String Equals"},"content":{"rendered":"\n<p>Strings are a data type used to store text-based data in Java. When you\u2019re working with strings, you may encounter a scenario where you want to compare two strings with each other.<br><\/p>\n\n\n\n<p>That\u2019s where the Java string <code>equals()<\/code> and <code>equalsIgnoreCase()<\/code> methods come in. The <code>equals()<\/code> method is used to check whether two strings are equal, and <code>equalsIgnoreCase()<\/code> is used to compare whether two strings are equal while ignoring their cases.<br><\/p>\n\n\n\n<p>This tutorial will walk through, with examples, how to use the string <code>equals()<\/code> and <code>equalsIgnoreCase()<\/code> methods in Java. By the end of reading this article, you\u2019ll be an expert at comparing strings using these methods in Java.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java Strings<\/h2>\n\n\n\n<p>Strings are used to store text and can include letters, numbers, symbols, and whitespaces. For instance, a string may include the name of a customer at a tailor\u2019s store, or the address of a supplier for the tailor store.<br><\/p>\n\n\n\n<p>In Java, strings are declared as a sequence of characters enclosed between quotation marks. Here\u2019s an example of a Java string:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>String favoriteCoffeeShop = \"Central Perk\";<\/pre><\/div>\n\n\n\n<p>In this example, we have declared a variable called<code> favoriteCoffeeShop<\/code> and assigned it the value <code>Central Perk<\/code>.<br><\/p>\n\n\n\n<p>Java string objects are immutable, which means once a string is created, we need to use the <code>equals()<\/code> method to compare it with another string. Now that we know the basics of strings, we can go on to discuss the string <code>equals()<\/code> and <code>equalsIgnoreCase()<\/code> methods.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java String equals<\/h2>\n\n\n\n<p>The Java string <code>equals()<\/code> method is used to compare objects and check whether the content of two strings are equal.<br><\/p>\n\n\n\n<p><code>equals()<\/code> accepts one parameter: the string you want to compare to another string. Here\u2019s the syntax for the string <code>equals()<\/code> method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>stringName.equals(string2Name);<\/pre><\/div>\n\n\n\n<p>Let\u2019s break this down:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>stringName<\/strong> is the name of the original string to which you want to compare string2Name<\/li>\n\n\n\n<li><strong>equals()<\/strong> is the method used to compare stringName with string2Name.<\/li>\n\n\n\n<li><strong>string2Name<\/strong> is the string which you want to compare to stringName.<\/li>\n<\/ul>\n\n\n\n<p>The <code>equals()<\/code> method returns a boolean value based on whether the strings are equal. So, if the two strings are equal, the value true is returned; otherwise, false is returned.<br><\/p>\n\n\n\n<p>The string <code>equals()<\/code> method is case sensitive. So, if two strings contain the same characters but use different cases, the <code>equals()<\/code> method will return false.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java String equals Example<\/h2>\n\n\n\n<p>Suppose we are operating a hotel and we are writing a program to streamline our check-in phase. When a customer checks in, they should give their name and booking reference. We will compare the booking reference the customer gives to the one stored with their name on file, to verify the identity of the customer.<br><\/p>\n\n\n\n<p>We could use this code to compare the booking reference on file with the booking reference provided by the customer:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class Main {\n\tpublic static void main(String args[]) {\n\t\tString onFileBookingReference = \"#ST2920198\";\n\t\tString customerGivenBookingReference = \"#ST2920198\";\n\t\tboolean areEqual = onFileBookingReference.equals(customerGivenBookingReference);\n\t\tif (areEqual == true) {\n\t\t\tSystem.out.println(\"This booking is confirmed.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"The booking reference provided does not match the one on-file.\");\n\t\t}\n\t}\n}\n<\/pre><\/div>\n\n\n\n<p>Our code returns:<br><\/p>\n\n\n\n<p><code>This booking is confirmed.<br><\/code><\/p>\n\n\n\n<p>Let\u2019s break down our code:<br><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>We declare a variable called <code>onFileBookingReference<\/code> which stores the booking reference associated with a customer\u2019s name.<\/li>\n\n\n\n<li>We declare a variable called <code>customerGivenBookingReference<\/code> which stores the booking reference given by the customer to the clerk at the check-in desk.<\/li>\n\n\n\n<li>We use the <code>equals()<\/code> method to check whether <code>onFileBookingReference<\/code> is equal to <code>customerGivenBookingReference<\/code>, and assign the result of the method to the areEqual variable.<\/li>\n\n\n\n<li>An <code>if<\/code> statement is used to check whether <code>areEqual<\/code> is equal to true.\n<ol class=\"wp-block-list\">\n<li>If areEqual is equal to true, the message <code>This booking is confirmed<\/code>. is printed to the console.<\/li>\n\n\n\n<li>If areEqual is equal to false, the message <code>The booking reference provided does not match the one on-file<\/code>. is printed to the console.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p>In this example, the customer has given the correct booking reference, so our program confirmed their booking.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java String equalsIgnoreCase<\/h2>\n\n\n\n<p>The String <code>equalsIgnoreCase()<\/code> method is used to compare two strings while ignoring their case. <code>equalsIgnoreCase()<\/code> uses the same syntax as the <code>equals()<\/code> method, which is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>stringName.equalsIgnoreCase(string2Name);<\/pre><\/div>\n\n\n\n<p>Now, let\u2019s walk through an example to illustrate this method in action.<br><\/p>\n\n\n\n<p>Suppose we want to write a program that checks whether a customer\u2019s name matches the one associated with the booking reference given. This check should be case insensitive to ensure that a capitalization error does not cause a booking to be lost by the check-in clerk.<br><\/p>\n\n\n\n<p>We could use the following code to compare a customer\u2019s name with the one linked to their booking reference:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class Main {\n\tpublic static void main(String args[]) {\n\t\tString onFileName = \"Gregory Lamont\";\n\t\tString customerName = \"gregory lamont\";\n\t\tboolean areEqual = onFileName.equalsIgnoreCase(customerName);\n\t\tif (areEqual == true) {\n\t\t\tSystem.out.println(\"This booking is confirmed.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"The customer name provided does not match the one on-file.\");\n\t\t}\n\t}\n}\nWhen we run our code, the following response is returned:\nThis booking is confirmed.\n<\/pre><\/div>\n\n\n\n<p>When we run our code, the following response is returned:<br><\/p>\n\n\n\n<p><code>This booking is confirmed.<br><\/code><\/p>\n\n\n\n<p>The customer name stored on-file is <code>Gregory Lamont<\/code>, but the customer name entered by the clerk was <code>gregory lamont<\/code>. If we used the <code>equals()<\/code> method, these strings would not be considered the same because their cases are different.<br><\/p>\n\n\n\n<p>However, in this example, we used the <code>equalsIgnoreCase()<\/code> method, which ignores the cases in which the string\u2019s characters are written.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The String <code>equals()<\/code> method is used to check if two strings are exactly equal. The <code>equalsIgnoreCase()<\/code> method is used to check if two strings are equal, irrespective of their cases.<br><\/p>\n\n\n\n<p>This tutorial walked through how to use the string <code>equals()<\/code> and <code>equalsIgnoreCase()<\/code> methods in Java, with reference to two examples. Now you\u2019re ready to start comparing strings in Java using <code>equals()<\/code> and <code>equalsIgnoreCase()<\/code> like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"Strings are a data type used to store text-based data in Java. When you\u2019re working with strings, you may encounter a scenario where you want to compare two strings with each other. That\u2019s where the Java string equals() and equalsIgnoreCase() methods come in. The equals() method is used to check whether two strings are equal,&hellip;","protected":false},"author":240,"featured_media":13491,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-13489","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.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Java String Equals: The Complete Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The Java string \u201cequals\u201d and \u201cequalsIgnoreCase\u201d methods allow developers to check if strings are equal. Learn more in this article.\" \/>\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-string-equals\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java String Equals\" \/>\n<meta property=\"og:description\" content=\"The Java string \u201cequals\u201d and \u201cequalsIgnoreCase\u201d methods allow developers to check if strings are equal. Learn more in this article.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-string-equals\/\" \/>\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-03-18T22:32:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:33:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-using-ballpoint-pen-374820.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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Java String Equals\",\"datePublished\":\"2020-03-18T22:32:08+00:00\",\"dateModified\":\"2023-12-01T10:33:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/\"},\"wordCount\":797,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/man-using-ballpoint-pen-374820.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/\",\"name\":\"Java String Equals: The Complete Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/man-using-ballpoint-pen-374820.jpg\",\"datePublished\":\"2020-03-18T22:32:08+00:00\",\"dateModified\":\"2023-12-01T10:33:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Java string \u201cequals\u201d and \u201cequalsIgnoreCase\u201d methods allow developers to check if strings are equal. Learn more in this article.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/man-using-ballpoint-pen-374820.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/man-using-ballpoint-pen-374820.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-string-equals\\\/#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\":\"Java String Equals\"}]},{\"@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\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"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":"Java String Equals: The Complete Guide | Career Karma","description":"The Java string \u201cequals\u201d and \u201cequalsIgnoreCase\u201d methods allow developers to check if strings are equal. Learn more in this article.","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-string-equals\/","og_locale":"en_US","og_type":"article","og_title":"Java String Equals","og_description":"The Java string \u201cequals\u201d and \u201cequalsIgnoreCase\u201d methods allow developers to check if strings are equal. Learn more in this article.","og_url":"https:\/\/careerkarma.com\/blog\/java-string-equals\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-03-18T22:32:08+00:00","article_modified_time":"2023-12-01T10:33:25+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-using-ballpoint-pen-374820.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\/java-string-equals\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Java String Equals","datePublished":"2020-03-18T22:32:08+00:00","dateModified":"2023-12-01T10:33:25+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/"},"wordCount":797,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-using-ballpoint-pen-374820.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-string-equals\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/","url":"https:\/\/careerkarma.com\/blog\/java-string-equals\/","name":"Java String Equals: The Complete Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-using-ballpoint-pen-374820.jpg","datePublished":"2020-03-18T22:32:08+00:00","dateModified":"2023-12-01T10:33:25+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Java string \u201cequals\u201d and \u201cequalsIgnoreCase\u201d methods allow developers to check if strings are equal. Learn more in this article.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-string-equals\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-using-ballpoint-pen-374820.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/man-using-ballpoint-pen-374820.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-string-equals\/#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":"Java String Equals"}]},{"@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\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","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\/13489","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=13489"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13489\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13491"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}