{"id":13635,"date":"2020-05-28T13:37:24","date_gmt":"2020-05-28T20:37:24","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=13635"},"modified":"2023-12-01T03:03:24","modified_gmt":"2023-12-01T11:03:24","slug":"java-initialize-arraylist","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/","title":{"rendered":"How to Initialize ArrayList in Java"},"content":{"rendered":"\n<p><em>The Java <\/em><code><em>Arrays.asList()<\/em><\/code><em> method and <\/em><code><em>ArrayList<\/em><\/code><em> class are used to initialize arrays in Java. The normal <\/em><code><em>List<\/em><\/code><em> interface cannot be used to create arrays, so the <\/em><code><em>ArrayList<\/em><\/code><em> class is required to create an empty array. The Java <\/em><code><em>Arrays.asList()<\/em><\/code><em> method allows us to easily initialize the resulting array.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Initializing an array list refers to the process of assigning a set of values to an array. In order to work with ArrayLists in Java, you need to know how to initialize an ArrayList.&nbsp;<\/p>\n\n\n\n<p>That\u2019s where Java\u2019s <code>Arrays.asList()<\/code> method comes in. The <code>Arrays.asList()<\/code> method allows you to initialize an ArrayList in Java.<\/p>\n\n\n\n<p>This tutorial will explore, with examples, how to initialize an ArrayList in Java using the <code>asList()<\/code> method. After reading this tutorial, you\u2019ll be an expert at initializing array lists in Java.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java ArrayList<\/h2>\n\n\n\n<p>In Java, the <code>List<\/code> interface provides a set of features that allows data to be stored sequentially. However, since List is a Java collections interface, we cannot directly create a list from the interface\u2014Java interfaces cannot be used to create objects.<\/p>\n\n\n\n<p>ArrayList is a Java class that implements the List interface and allows us to create resizable arrays.<\/p>\n\n\n\n<p>In Java, arrays have fixed sizes. When declaring an array in Java, you have to specify the size of that array. It can be difficult to change the size of an array once you set it.<\/p>\n\n\n\n<p>One way to get around the difficulty of resizing an array in Java is to use the ArrayList class. Arrays stored in the ArrayList class are easy to resize. Therefore, developers often use the ArrayList class when storing data in an array.<\/p>\n\n\n\n<p>Before we can use ArrayLists in our code, we need to import the ArrayList class. Here\u2019s the code we can use to import this class into a Java program:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.ArrayList;<\/pre><\/div>\n\n\n\n<p>Now that we\u2019ve imported the ArrayList class, we can start creating ArrayLists in our code. Here\u2019s the syntax for creating a Java ArrayList:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ArrayList&lt;Type&gt; arrayName = new ArrayList&lt;&gt;();<\/pre><\/div>\n\n\n\n<p>Here are the main components of our syntax:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ArrayList<\/strong> tells our program to create an array list.<\/li>\n\n\n\n<li><strong>Type<\/strong> is the type of data our array list will store.<\/li>\n\n\n\n<li><strong>arrayName<\/strong> is the name of the array list we are creating.<\/li>\n\n\n\n<li><strong>new ArrayList&lt;&gt;()<\/strong> tells our program to create an instance of ArrayList and assign it to the arrayName variable.<\/li>\n<\/ul>\n\n\n\n<p>Once we\u2019ve created an ArrayList, we can start to initialize it with values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Initialize an ArrayList in Java<\/h2>\n\n\n\n<p>In Java, you can initialize arrays directly. This means that when you declare an array, you can assign it the values you want it to hold. However, this is not the case with ArrayLists.<\/p>\n\n\n\n<p>When you\u2019re working with ArrayLists, you\u2019ll typically add values to them using: <code>add()<\/code>. For instance, the following code shows a program that adds the value <code>London<\/code> to an ArrayList of cities:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.ArrayList;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tArrayList&lt;String&gt; cities = new ArrayList&lt;&gt;();\n\t\tcities.add(\"London\");\n\t\tSystem.out.println(\"Cities: \" + cities);\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>Cities: [London]<\/pre><\/div>\n\n\n\n<p>This method works fine if we want to add a few values to an ArrayList. But what if we wanted to add 20 values from an existing array to an ArrayList?<\/p>\n\n\n\n<p>We can use the <code>Arrays.asList()<\/code> method to work around the array initialization limitation in ArrayList and give our ArrayList a set of default values.<\/p>\n\n\n\n<p>The syntax for the <code>asList()<\/code> method is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Arrays.asList(item1, item2, item3);<\/pre><\/div>\n\n\n\n<p>The <code>asList()<\/code> method accepts any number of parameters, depending on the number of values you want to add to the ArrayList with which you\u2019re working.<\/p>\n\n\n\n<p>Let\u2019s walk through an example to demonstrate the <code>asList()<\/code> method in action.<\/p>\n\n\n\n<p>Suppose we are creating a program that stores a list of student names who won the most gold stars every week for the last eight weeks. Instead of using the <code>add()<\/code> method to add eight students to our list, we can use <code>asList()<\/code> to initialize a list with eight values.<\/p>\n\n\n\n<p>Here\u2019s the code we could use to initialize a list of students who won the most gold stars every week for the last eight weeks:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>import java.util.ArrayList;\nimport java.util.Arrays;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tArrayList&lt;String&gt; students = new ArrayList&lt;&gt;(Arrays.asList(\"Paul\", \"David\", \"Lisa\", \"Alyssa\", \"Alex\", \"Ronald\", \"Todd\", \"Hope\"));\n\t\tSystem.out.println(\"Students: \" + students);\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>Students: [Paul, David, Lisa, Alyssa, Alex, Ronald, Todd, Hope]<\/pre><\/div>\n\n\n\n<p>Let\u2019s break down our code. We first declare an ArrayList\u2014called students\u2014that can store string values. We use the following code to initialize this ArrayList with a set of default values:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>new ArrayList&lt;&gt;(Arrays.asList(\"Paul\", \"David\", \"Lisa\", \"Alyssa\", \"Alex\", \"Ronald\", \"Todd\", \"Hope\"));<\/pre><\/div>\n\n\n\n<p>In this code, we created an array of eight elements. Then, we used the <code>asList()<\/code> method to convert that list of elements to an ArrayList.<\/p>\n\n\n\n<p>This method of initializing an ArrayList is easier to read than using eight separate <code>add()<\/code> statements to add values to our ArrayList.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Java developers use the <code>Arrays.asList()<\/code> method to initialize an ArrayList. Using <code>asList()<\/code> allows you to populate an array with a list of default values. This can be more efficient than using multiple <code>add()<\/code> statements to add a set of default values to an ArrayList.<\/p>\n\n\n\n<p>This tutorial discussed, using examples, how to initialize an ArrayList in Java. Now you\u2019re equipped with the knowledge you need to initialize ArrayLists in Java like a professional!<\/p>\n","protected":false},"excerpt":{"rendered":"The Java Arrays.asList() method and ArrayList class are used to initialize arrays in Java. The normal List interface cannot be used to create arrays, so the ArrayList class is required to create an empty array. The Java Arrays.asList() method allows us to easily initialize the resulting array. Initializing an array list refers to the process&hellip;","protected":false},"author":240,"featured_media":13637,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17289],"tags":[],"class_list":{"0":"post-13635","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-java"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Java","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Initialize ArrayList in Java | Career Karma<\/title>\n<meta name=\"description\" content=\"Developers use the asList method to initialize an ArrayList in Java code. On Career Karma, learn how to use the Java asList method.\" \/>\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-initialize-arraylist\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Initialize ArrayList in Java\" \/>\n<meta property=\"og:description\" content=\"Developers use the asList method to initialize an ArrayList in Java code. On Career Karma, learn how to use the Java asList method.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/\" \/>\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-05-28T20:37:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:03:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.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\/java-initialize-arraylist\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"How to Initialize ArrayList in Java\",\"datePublished\":\"2020-05-28T20:37:24+00:00\",\"dateModified\":\"2023-12-01T11:03:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/\"},\"wordCount\":795,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/\",\"name\":\"How to Initialize ArrayList in Java | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg\",\"datePublished\":\"2020-05-28T20:37:24+00:00\",\"dateModified\":\"2023-12-01T11:03:24+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Developers use the asList method to initialize an ArrayList in Java code. On Career Karma, learn how to use the Java asList method.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#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\":\"How to Initialize ArrayList 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":"How to Initialize ArrayList in Java | Career Karma","description":"Developers use the asList method to initialize an ArrayList in Java code. On Career Karma, learn how to use the Java asList method.","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-initialize-arraylist\/","og_locale":"en_US","og_type":"article","og_title":"How to Initialize ArrayList in Java","og_description":"Developers use the asList method to initialize an ArrayList in Java code. On Career Karma, learn how to use the Java asList method.","og_url":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-28T20:37:24+00:00","article_modified_time":"2023-12-01T11:03:24+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.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-initialize-arraylist\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"How to Initialize ArrayList in Java","datePublished":"2020-05-28T20:37:24+00:00","dateModified":"2023-12-01T11:03:24+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/"},"wordCount":795,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/","url":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/","name":"How to Initialize ArrayList in Java | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg","datePublished":"2020-05-28T20:37:24+00:00","dateModified":"2023-12-01T11:03:24+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Developers use the asList method to initialize an ArrayList in Java code. On Career Karma, learn how to use the Java asList method.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/03\/macbook-pro-iphone-cup-desk-7974.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/java-initialize-arraylist\/#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":"How to Initialize ArrayList 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\/13635","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=13635"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/13635\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/13637"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=13635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=13635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=13635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}