{"id":13519,"date":"2020-11-01T17:40:44","date_gmt":"2020-11-02T01:40:44","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13519"},"modified":"2023-12-01T04:03:30","modified_gmt":"2023-12-01T12:03:30","slug":"java-charat","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-charat\/","title":{"rendered":"A Step-By-Step Guide to charAt in Java"},"content":{"rendered":"\n<p><em>The Java charAt() method returns a character at a specific index position in a string. The first character in a string has the index position 0. charAt() returns a single character. It does not return a range of characters.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>When you\u2019re working with strings in Java, you may want to find out what character is at a certain position in the string.<\/p>\n\n\n\n<p>That\u2019s where the <em>charAt()<\/em> method comes in. The Java <em>charAt()<\/em> method is used to find the character associated with a certain position in a string. It can also return multiple characters in a string.<\/p>\n\n\n\n<p>For instance, say you\u2019re writing a program that retrieves the locations associated with a US telephone area code. You may want to retrieve the first three characters of a string that contains a phone number.<\/p>\n\n\n\n<p>This tutorial will discuss how to use <em>charAt()<\/em> in Java, with reference to examples\/<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java String Refresher<\/h2>\n\n\n\n<p>Strings are an important data type in any programming language because they allow you to work with text-based data in your code. In Java, <a href=\"https:\/\/careerkarma.com\/blog\/java-string\/\">strings are enclosed in double quotation marks<\/a> (<em>\u201c\u201d<\/em>). Here\u2019s an example of declaring a string in Java:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>String company = &quot;Google&quot;;<\/pre><\/div>\n\n\n\n<p>The <em>company<\/em> variable that we defined above would have the following index values:<\/p>\n\n\n\n<table class=\"wp-block-table course-info-table\"><tbody><tr><td>G<\/td><td>o<\/td><td>o<\/td><td>g<\/td><td>l<\/td><td>e<\/td><\/tr><tr><td>0<\/td><td>1<\/td><td>2<\/td><td>3<\/td><td>4<\/td><td>5<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>The first letter \u2018G\u2019 would have an index of 0, while the letter \u2018L\u2019 has an index of 4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java charAt<\/h2>\n\n\n\n<p>The built-in Java string charAt() method returns a character at a particular index position in a string. The first character has the index value 0 and so on for subsequent characters in the string.<\/p>\n\n\n\n<p>If you want to retrieve the first character in a string, or the ninth, for instance, you can use <em>charAt()<\/em>. The syntax for the <em>charAt()<\/em> method is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>char = string_name.charAt(index)<\/pre><\/div>\n\n\n\n<p><em>charAt()<\/em> accepts one parameter: the <a href=\"https:\/\/careerkarma.com\/blog\/java-indexof\/\">index position<\/a> of the character you want to retrieve.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">charAt Java Example<\/h2>\n\n\n\n<p>Say that we are operating a coffee shop. We are offering a 5% discount to all customers whose names begin with the letter <em>G.<\/em> This is part of a promotion intended to boost sales and get more people into the store.<\/p>\n\n\n\n<p>We want to create a program that retrieves the first letter of a name given to a barista. We could do so using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>public class GetFirstLetter {\n\tpublic static void main (String[] args) {\n\t\tString name = &quot;GRAHAM HENDERSON&quot;;\n\t\tchar letter = name.charAt(0);\n\t\tSystem.out.println(&quot;The first letter of &quot; + name + &quot;'s name is &quot; + letter + &quot;.&quot;);\n\t}\n}<\/pre><\/div>\n\n\n\n<p>When we run our code, the program returns the following response:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>The first letter of GRAHAM HENDERSON's name is G.<\/pre><\/div>\n\n\n\n<p>First, we create a class called <em>GetFirstLetter<\/em>, which stores our code. Then, we defined a <a href=\"https:\/\/careerkarma.com\/blog\/java-variables\/\">Java variable<\/a> called <em>name.<\/em> This string stores the name of our customer. In this case, our customer\u2019s name was <em>Graham Henderson.<\/em> We decide to write customer names in capital letters to reduce the chance a name is misread.<\/p>\n\n\n\n<p>On the next line, we define a variable called <em>letter<\/em>. We used the \u201cchar\u201d data type because <em>letter<\/em> is only going to store one character.<\/p>\n\n\n\n<p>We assign this variable the value <em>name.charAt(0).<\/em> This returns the first character in our string. In other words, we retrieve the character with the index value 0. In this case, the <em>charAt()<\/em> method returned the character <em>G<\/em>.<\/p>\n\n\n\n<p>Then, we print out a message to the console that told us the character at the specified index, which in this case is 1.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Retrieve Another Character<\/h3>\n\n\n\n<p>If we wanted to retrieve the second character in the string, we could make the following change to our code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\u2026\nString name = &quot;GRAHAM HENDERSON&quot;;\n\t\tchar letter = name.charAt(1);\n\t\tSystem.out.println(&quot;The second letter of &quot; + name + &quot;'s name is &quot; + letter + &quot;.&quot;);\n\u2026<\/pre><\/div>\n\n\n\n<p>We made two changes. First, we changed the index number in the <em>charAt()<\/em> int index method to 1, which represents the second character in our string. Second, we changed the print message to say <em>The second letter of\u2026<\/em>, instead of <em>The first letter of\u2026<\/em>.<\/p>\n\n\n\n<p>Our code returns: <em>R<\/em>. This is a new string. Our original string has not been changed.<\/p>\n\n\n\n<p>As you can see, our code retrieved the second character in our string.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java String charAt: Count Occurrence Example<\/h2>\n\n\n\n<p>One useful application of the <em>charAt()<\/em> method is in a count occurrence algorithm. Count occurrence algorithms count how many times a particular value appears within a string, list, or other iterable object.<\/p>\n\n\n\n<p>Let\u2019s go back to the coffee shop. Suppose that too many customers were claiming our discount because <em>G<\/em> is such a common first letter in a name. We decided to change our deal so that you can get 5% off your purchase only if your name contains more than two G\u2019s.<\/p>\n\n\n\n<p>Here\u2019s the code we could use to calculate whether a customer is eligible for our discount:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class GetLetters {\n\tpublic static void main (String[] args) {\n\t\tString name = &quot;GRAHAM HENDERSON&quot;;\n\n\t\tint counter = 0;\n\n\t\tfor (int i = 0; i &lt;= name.length() - 1; i++) {\nif (name.charAt(i) == 'G') {\ncounter++; \n}\n}\n\t\tSystem.out.println(name + &quot;'s&quot; + &quot; name contains &quot; + counter + &quot;G.&quot;);\n\t}\n}<\/pre><\/div>\n\n\n\n<p>When we run our code, the program returns the following response:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>GRAHAM HENDERSON's name contains 1 G.<\/pre><\/div>\n\n\n\n<p>We first define a class called <em>GetLetters<\/em>, which stores the code for our program. Then, we define a variable called <em>name<\/em> which stores our customer\u2019s name.<\/p>\n\n\n\n<p>We defined a variable called <em>counter<\/em> which keeps track of how many instances of the letter G exist in our string. Then, we created a <a href=\"https:\/\/careerkarma.com\/blog\/java-for-each-loops\/\">Java for loop<\/a> that looks through each value in our <em>name<\/em> variable.<\/p>\n\n\n\n<p>The <em>name.length() -1<\/em> tells us that our loop will keep going until it has passed through every letter in the <em>name<\/em> string.<\/p>\n\n\n\n<p>Next, we defined an if statement. This statement checks whether the character at index position <em>i.<\/em> This is the part of our for loop that increases every time the loop runs, is equal to <em>G<\/em>.<\/p>\n\n\n\n<p>Note that this comparison is case-sensitive. If our names were recorded in lowercase, the statement <em>name.charAt(i) == \u2018G\u2019<\/em> would never evaluate to true.<\/p>\n\n\n\n<p>If the character at index position <em>i<\/em> is equal to <em>G<\/em>, our counter increases by 1. On the final line of our code, we directed the program to print out a message to the console. This message tells us how many times the character <em>G<\/em> appears in the customer\u2019s name.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Java <em>charAt()<\/em> method retrieves the character that exists at a particular index value within a string. For instance, we could use <em>charAt()<\/em> to retrieve the 10th character in a string, or the 15th.<\/p>\n\n\n\n<p>This tutorial explored how to use the <em>charAt()<\/em> method in Java. We went through an example step-by-step of the <em>charAt()<\/em> method being used, and we also discussed how <em>charAt()<\/em> can be used with Java count occurrence algorithms.<\/p>\n\n\n\n<p>You\u2019re now ready to start using <em>charAt()<\/em> like an expert in Java! To learn more about Java, read our guide on <a href=\"https:\/\/careerkarma.com\/blog\/how-to-code-in-java\/\">How to Code in Java<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The Java charAt() method returns a character at a specific index position in a string. The first character in a string has the index position 0. charAt() returns a single character. It does not return a range of characters. When you\u2019re working with strings in Java, you may want to find out what character is&hellip;","protected":false},"author":240,"featured_media":13520,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-13519","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>A Step-By-Step Guide to charAt in Java | Career Karma<\/title>\n<meta name=\"description\" content=\"The Java charAt method finds the character that appears at a specific index position in a string. Learn how to use the Java charAt method 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-charat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Step-By-Step Guide to charAt in Java\" \/>\n<meta property=\"og:description\" content=\"The Java charAt method finds the character that appears at a specific index position in a string. Learn how to use the Java charAt method on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-charat\/\" \/>\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-02T01:40:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:03:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.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-charat\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"A Step-By-Step Guide to charAt in Java\",\"datePublished\":\"2020-11-02T01:40:44+00:00\",\"dateModified\":\"2023-12-01T12:03:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/\"},\"wordCount\":1039,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-charat\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/java-charat\/\",\"name\":\"A Step-By-Step Guide to charAt in Java | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg\",\"datePublished\":\"2020-11-02T01:40:44+00:00\",\"dateModified\":\"2023-12-01T12:03:30+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Java charAt method finds the character that appears at a specific index position in a string. Learn how to use the Java charAt method on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-charat\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-charat\/#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\":\"A Step-By-Step Guide to charAt in Java\"}]},{\"@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":"A Step-By-Step Guide to charAt in Java | Career Karma","description":"The Java charAt method finds the character that appears at a specific index position in a string. Learn how to use the Java charAt method 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-charat\/","og_locale":"en_US","og_type":"article","og_title":"A Step-By-Step Guide to charAt in Java","og_description":"The Java charAt method finds the character that appears at a specific index position in a string. Learn how to use the Java charAt method on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/java-charat\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-02T01:40:44+00:00","article_modified_time":"2023-12-01T12:03:30+00:00","og_image":[{"width":1000,"height":667,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.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-charat\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-charat\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"A Step-By-Step Guide to charAt in Java","datePublished":"2020-11-02T01:40:44+00:00","dateModified":"2023-12-01T12:03:30+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-charat\/"},"wordCount":1039,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-charat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-charat\/","url":"https:\/\/careerkarma.com\/blog\/java-charat\/","name":"A Step-By-Step Guide to charAt in Java | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg","datePublished":"2020-11-02T01:40:44+00:00","dateModified":"2023-12-01T12:03:30+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Java charAt method finds the character that appears at a specific index position in a string. Learn how to use the Java charAt method on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-charat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-charat\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-charat\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/apartment-apple-business-chair-245032.jpg","width":1000,"height":667},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-charat\/#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":"A Step-By-Step Guide to charAt in Java"}]},{"@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\/13519","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=13519"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13519\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13520"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}