{"id":13614,"date":"2020-03-20T21:25:22","date_gmt":"2020-03-21T04:25:22","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13614"},"modified":"2023-12-01T02:34:35","modified_gmt":"2023-12-01T10:34:35","slug":"java-print-array","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-print-array\/","title":{"rendered":"Java Print Array"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to Print an Array in Java<\/h2>\n\n\n\n<p>An array is an ordered sequence of a certain number of items of the same data type. It is a Java data structure.&nbsp;<\/p>\n\n\n\n<p>Java developers often use arrays to store data. For instance, an array could store the names of five suppliers of cereal bars at a local supermarket. Another array could store the names of nine breeds of fish found in a local lake.<\/p>\n\n\n\n<p>When you\u2019re working with arrays in Java, you may encounter a scenario where you want to print out the contents of an array. There are multiple ways to do this.<\/p>\n\n\n\n<p>This tutorial will discuss, using examples, three approaches you can take to print an array in Java. By the end of this tutorial, you\u2019ll be an expert at printing arrays in Java.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java Array<\/h2>\n\n\n\n<p>Arrays are a crucial component of coding in Java. They allow you to store and access a large number of values efficiently. Instead of declaring a number of different variables to hold values of the same data type, you can declare one array that holds all of the values you want to store.<\/p>\n\n\n\n<p>Here\u2019s an example of an array in Java:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>String[] birds;\nbirds = new String[10];<\/pre><\/div>\n\n\n\n<p>In our code above, we first declared an array, called birds,which is capable of storing string values. Then we assigned the number of string values the birds array can store (10).<\/p>\n\n\n\n<p>Now that we&#8217;ve explored the basics of Java arrays, we can discuss how to print an array in Java.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Print an Array Using the Arrays Library<\/h2>\n\n\n\n<p>The Java Arrays library provides a number of functions used to work with arrays in Java. One of these functions is the <code>toString()<\/code> method, which is used to print the contents of an array to the console.<\/p>\n\n\n\n<p>If we want to use Java\u2019s Arrays library in our code, we first have to import that library. We can do so using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.Arrays;<\/pre><\/div>\n\n\n\n<p>Once we import Java\u2019s Arrays library, we can use its functions.<\/p>\n\n\n\n<p>Let\u2019s suppose we have an array that stores the names of our favorite sandwich shops in town. We are looking for a spot to grab lunch, so we decide to print this array to the console. We can do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.Arrays;\nclass PrintSandwichShops {\n\tpublic static void main(String[] args) {\n\t\tString[] shops = {\"Kat's Sandwiches\", \"Swanson Cafe\", \"Lakeland's Salads and Sandwiches\", \"Le Petit Sandwich\"};\n\t\tSystem.out.println(Arrays.toString(shops));\n\t}\n}<\/pre><\/div>\n\n\n\n<p>Our code returns: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[Kat's Sandwiches, Swanson Cafe, Lakeland's Salads and Sandwiches, Le Petit Sandwich]<\/pre><\/div>\n\n\n\n<p>Let\u2019s break down our code. First we declare an array, called shops, which stores our four favorite sandwich shops as strings. Then we use the <code>Arrays.toString()<\/code> method to convert our array into a readable string, and we use <code>println()<\/code> to print the items in the array to the console.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Print an Array Using a for-each Loop<\/h2>\n\n\n\n<p>In programming, <code>for<\/code> loops are used to execute a specific block of code until a certain condition is met. For instance, a for loop may run 10 times until a condition is met, after which point the program will continue past the loop and run the rest of the code.<\/p>\n\n\n\n<p>Developers use <a href=\"https:\/\/careerkarma.com\/blog\/java-for-each-loops\/\">for-each loops<\/a>, also known as <code>enhanced for<\/code> loops, to iterate through every item in an array. Combined with a print statement, we can use a for-each loop to iterate through and print to the console every item in an array.<\/p>\n\n\n\n<p>Suppose we have an array that stores the common names of all the birds we saw while birdwatching this year. We want to print the contents of this array to the console so we can review the names of the birds we spotted. We could do so using this code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>class PrintBirds {\n\tpublic static void main(String[] args) {\n\t\tString[] birds = {\"Robin\", \"Chaffinch\", \"Starling\", \"Goldfinch\", \"Great Tit\"};\n\t\tfor (String bird: birds) {\n\t\t\tSystem.out.println(bird);\n\t\t}\n\t}\n}<\/pre><\/div>\n\n\n\n<p>Our code returns: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Robin\nChaffinch\nStarling\nGoldfinch\nGreat Tit<\/pre><\/div>\n\n\n\n<p>In our code, we used a for-each loop to iterate through the common name of every bird in the birds array and print each bird name to the console.<\/p>\n\n\n\n<p>First, we declared an array called birds, which holds five string values. Then we used the following syntax to create a for-each loop:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>for (String bird: birds) {\n}<\/pre><\/div>\n\n\n\n<p>This statement loops through every item in the birds array.&nbsp;<\/p>\n\n\n\n<p>Then, we printed out each item in the array using <code>System.out.println()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Print a Multidimensional Array<\/h2>\n\n\n\n<p>A multidimensional array is an array with two dimensions which are represented by rows and columns. When you\u2019re working with a multidimensional array, you may decide that you want to print its contents to the console.<\/p>\n\n\n\n<p>We can accomplish this task using the <code>Arrays.deepToString()<\/code> method, which is part of the Java Arrays library.<\/p>\n\n\n\n<p>Suppose we have a multidimensional array that stores a list of our favorite books, sorted by genre. The first row in our array stores the names of our favorite business books; the next row stores the names of our favorite self-help books. We could use the following code to print out the contents of our multidimensional array:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.Arrays;\nclass PrintBooks {\n\tpublic static void main(String[] args) {\n\t\tString[][] books = {\n\t\t\t\t{\"The Secrets of Sand Hill Road\", \"The Upstarts\"},\n\t\t\t\t{\"Atomic Habits\", \"How to Win Friends and Influence People\"}\n\t\t\t\t};\n\t\tSystem.out.println(Arrays.deepToString(books));\n\t}\n}<\/pre><\/div>\n\n\n\n<p>Our code returns: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>[[The Secrets of Sand Hill Road, The Upstarts], [Atomic Habits, How to Win Friends and Influence People]]<\/pre><\/div>\n\n\n\n<p>As you can see, our code printed out the contents of our multidimensional array. Let\u2019s break down how our program works.<\/p>\n\n\n\n<p>First we declared a multidimensional array\u2014called books\u2014that stores two rows. The first row stores a list of our favorite business books, and the second row stores a list of our favorite self-help books.<\/p>\n\n\n\n<p>Then we use the <code>Arrays.deepToString()<\/code> method to convert the contents of books into a readable format. Finally, we print the result of the <code>deepToString()<\/code> method to the console using <code>System.out.println()<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Printing an array is a common operation when you\u2019re working with arrays in Java.<\/p>\n\n\n\n<p>This tutorial discussed, using examples, the three main approaches used to print an array in Java: a for-each loop, the <code>Arrays.toString()<\/code> method, and the <code>Arrays.deepToString()<\/code> method. The last of these\u2014<code>Arrays.deepToString()<\/code>\u2014is for multidimensional arrays.&nbsp;<\/p>\n\n\n\n<p>Now you have the knowledge you need to start printing arrays in Java like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"How to Print an Array in Java An array is an ordered sequence of a certain number of items of the same data type. It is a Java data structure.&nbsp; Java developers often use arrays to store data. For instance, an array could store the names of five suppliers of cereal bars at a local&hellip;","protected":false},"author":240,"featured_media":13615,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-13614","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 Print Array: A Step-By-Step Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"Printing an array is a common operation in Java development. On Career Karma, learn three ways to print an array in your code.\" \/>\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-print-array\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Print Array\" \/>\n<meta property=\"og:description\" content=\"Printing an array is a common operation in Java development. On Career Karma, learn three ways to print an array in your code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-print-array\/\" \/>\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-21T04:25:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:34:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-silver-macbook-pro-1181467.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"681\" \/>\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-print-array\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Java Print Array\",\"datePublished\":\"2020-03-21T04:25:22+00:00\",\"dateModified\":\"2023-12-01T10:34:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/\"},\"wordCount\":919,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/person-using-silver-macbook-pro-1181467.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/\",\"name\":\"Java Print Array: A Step-By-Step Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/person-using-silver-macbook-pro-1181467.jpg\",\"datePublished\":\"2020-03-21T04:25:22+00:00\",\"dateModified\":\"2023-12-01T10:34:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Printing an array is a common operation in Java development. On Career Karma, learn three ways to print an array in your code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/person-using-silver-macbook-pro-1181467.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/03\\\/person-using-silver-macbook-pro-1181467.jpg\",\"width\":1020,\"height\":681},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/java-print-array\\\/#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 Print Array\"}]},{\"@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 Print Array: A Step-By-Step Guide | Career Karma","description":"Printing an array is a common operation in Java development. On Career Karma, learn three ways to print an array in your code.","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-print-array\/","og_locale":"en_US","og_type":"article","og_title":"Java Print Array","og_description":"Printing an array is a common operation in Java development. On Career Karma, learn three ways to print an array in your code.","og_url":"https:\/\/careerkarma.com\/blog\/java-print-array\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-03-21T04:25:22+00:00","article_modified_time":"2023-12-01T10:34:35+00:00","og_image":[{"width":1020,"height":681,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-silver-macbook-pro-1181467.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-print-array\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Java Print Array","datePublished":"2020-03-21T04:25:22+00:00","dateModified":"2023-12-01T10:34:35+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/"},"wordCount":919,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-silver-macbook-pro-1181467.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-print-array\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/","url":"https:\/\/careerkarma.com\/blog\/java-print-array\/","name":"Java Print Array: A Step-By-Step Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-silver-macbook-pro-1181467.jpg","datePublished":"2020-03-21T04:25:22+00:00","dateModified":"2023-12-01T10:34:35+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Printing an array is a common operation in Java development. On Career Karma, learn three ways to print an array in your code.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-print-array\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-silver-macbook-pro-1181467.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/person-using-silver-macbook-pro-1181467.jpg","width":1020,"height":681},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-print-array\/#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 Print Array"}]},{"@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\/13614","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=13614"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13614\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13615"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}