{"id":17482,"date":"2023-08-03T09:25:45","date_gmt":"2023-08-03T09:25:45","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=17482"},"modified":"2023-08-03T09:25:45","modified_gmt":"2023-08-03T09:25:45","slug":"taking-character-input-in-java","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/","title":{"rendered":"Taking character input in Java"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg\" alt=\"\" \/><\/p>\n<p>Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources. In this article, we will look at various approaches to taking character input in Java that cater to different scenarios and use cases. Understanding how to efficiently capture character input is critical when developing a command-line application or handling user interactions.<\/p>\n<h2>Different Ways of Taking Character Input in Java<\/h2>\n<p>Let us discuss some of the ways to take character input in Java.<\/p>\n<p><strong>1. Using the Scanner Class:<\/strong><br \/>\nThe Scanner class in Java provides convenient methods for reading different types of data, including characters. Here&#8217;s an example of using Scanner to take character input:<\/p>\n<pre><code>import java.util.Scanner;\n\npublic class CharacterInputExample {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n\n        System.out.print(\"Enter a character: \");\n        char input = scanner.next().charAt(0);\n\n        System.out.println(\"You entered: \" + input);\n\n        scanner.close();\n    }\n}<\/code><\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre><code>Enter a character: H\nYou entered: H<\/code><\/pre>\n<p><strong>Explanation :<\/strong> In this code snippet, we create an instance of the Scanner class and use its <code>next()<\/code> method to read a string from the console. Then, we extract the first character from the string using the <code>charAt(0)<\/code> method and store it in the <code>input<\/code> variable.<\/p>\n<p><strong>2. Using BufferedReader:<\/strong><br \/>\nThe BufferedReader class provides efficient reading of characters from an input stream. Here&#8217;s an example of using BufferedReader to take character input:<\/p>\n<pre><code>import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class CharacterInputExample {\n    public static void main(String[] args) throws IOException {\n        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n        System.out.print(\"Enter a character: \");\n        char input = (char) reader.read();\n\n        System.out.println(\"You entered: \" + input);\n\n        reader.close();\n    }\n}<\/code><\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre><code>Enter a character: H\nYou entered: H<\/code><\/pre>\n<p><strong>Explanation :<\/strong> In this code snippet, we create an instance of BufferedReader, wrapping it around an InputStreamReader that reads from the standard input stream (<code>System.in<\/code>). We use the <code>read()<\/code> method to read a single character from the input stream, which we then store in the <code>input<\/code> variable.<\/p>\n<p><strong>3. Using Console Class (for Command Line):<\/strong><br \/>\nIf you&#8217;re developing a command-line application, you can use the Console class for reading character input. Here&#8217;s an example:<\/p>\n<pre><code>import java.io.Console;\n\npublic class CharacterInputExample {\n    public static void main(String[] args) {\n        Console console = System.console();\n\n        if (console != null) {\n            char input = console.readLine(\"Enter a character: \").charAt(0);\n\n            System.out.println(\"You entered: \" + input);\n        }\n    }\n}<\/code><\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre><code>Enter a character: H\nYou entered: H<\/code><\/pre>\n<p><strong>Explanation :<\/strong> In this code snippet, we obtain an instance of the Console class using <code>System.console()<\/code>. We then use the <code>readLine()<\/code> method to prompt the user for input and read a string. Finally, we extract the first character from the string and store it in the <code>input<\/code> variable.<\/p>\n<p><strong>Conclusion<\/strong><br \/>\nTaking character input in Java requires the use of several techniques, including the Scanner, BufferedReader, and Console classes. You can choose the best approach based on the requirements of your application and the specific context.  Understanding these techniques will enable you to confidently handle character input in Java programs, facilitating user interactions and building robust applications.<\/p>\n<h2>Frequently Asked Questions (FAQs)<\/h2>\n<p>Here is a frequently asked question related to taking character input in Java<\/p>\n<p><strong>1. How to take a character input in Java?<\/strong><br \/>\nTo take a single character input in Java, you can use the <code>next().charAt(0)<\/code> method of the Scanner class. Here&#8217;s an example:<\/p>\n<pre><code>import java.util.Scanner;\n\npublic class CharInputExample {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n\n        System.out.print(\"Enter a character: \");\n        char input = scanner.next().charAt(0);\n\n        System.out.println(\"You entered: \" + input);\n\n        scanner.close();\n    }\n}<\/code><\/pre>\n<p>In this code, the user is prompted to enter a character. The <code>next()<\/code> method reads the input as a string, and <code>charAt(0)<\/code> is used to extract the first character from the string, which is then assigned to the <code>input<\/code> variable.<\/p>\n<p><strong>2. How to take multiple character inputs in Java?<\/strong><br \/>\nIf you need to take multiple characters as input, you can use the <code>nextLine()<\/code> method of the Scanner class to read a string. Here&#8217;s an example:<\/p>\n<pre><code>import java.util.Scanner;\n\npublic class MultipleCharInputExample {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n\n        System.out.print(\"Enter multiple characters: \");\n        String input = scanner.nextLine();\n\n        System.out.println(\"You entered: \" + input);\n\n        scanner.close();\n    }\n}<\/code><\/pre>\n<p>In this code, the user is prompted to enter multiple characters. The <code>nextLine()<\/code> method reads the input as a string, including spaces, and assigns it to the <code>input<\/code> variable.<\/p>\n<p><strong>3. How to assign char to char in Java?<\/strong><br \/>\nIn Java, you can assign one char value to another char variable directly. Here&#8217;s an example:<\/p>\n<pre><code>char char1 = 'A';\nchar char2 = char1;\n\nSystem.out.println(\"char2: \" + char2);<\/code><\/pre>\n<p>In this code, the value of <code>char1<\/code> (&#8216;A&#8217;) is assigned to <code>char2<\/code>. The value of <code>char2<\/code> will be &#8216;A&#8217; as well.<\/p>\n<p><strong>4. How to check if input is a character in Java?<\/strong><br \/>\nTo check if the input is a character in Java, you can use the <code>Character.isLetter()<\/code> method. Here&#8217;s an example:<\/p>\n<pre><code>import java.util.Scanner;\n\npublic class CharacterCheckExample {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n\n        System.out.print(\"Enter a character: \");\n        char input = scanner.next().charAt(0);\n\n        if (Character.isLetter(input)) {\n            System.out.println(\"Input is a character.\");\n        } else {\n            System.out.println(\"Input is not a character.\");\n        }\n\n        scanner.close();\n    }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources. In this article, we will look at various approaches to taking character input in Java that cater to different scenarios and use cases. Understanding how to efficiently capture character input is critical when developing a [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[143],"tags":[],"class_list":["post-17482","post","type-post","status-publish","format-standard","hentry","category-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Taking character input in Java<\/title>\n<meta name=\"description\" content=\"Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Taking character input in Java\" \/>\n<meta property=\"og:description\" content=\"Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"PrepBytes Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prepbytes0211\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-03T09:25:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg\" \/>\n<meta name=\"author\" content=\"Prepbytes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prepbytes\" \/>\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:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Taking character input in Java\",\"datePublished\":\"2023-08-03T09:25:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\"},\"wordCount\":575,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\",\"name\":\"Taking character input in Java\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg\",\"datePublished\":\"2023-08-03T09:25:45+00:00\",\"description\":\"Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/43.205.93.38\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\/\/prepbytes.com\/blog\/category\/java\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Taking character input in Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/43.205.93.38\/#website\",\"url\":\"http:\/\/43.205.93.38\/\",\"name\":\"PrepBytes Blog\",\"description\":\"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING\",\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/43.205.93.38\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"http:\/\/43.205.93.38\/#organization\",\"name\":\"Prepbytes\",\"url\":\"http:\/\/43.205.93.38\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"contentUrl\":\"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp\",\"width\":160,\"height\":160,\"caption\":\"Prepbytes\"},\"image\":{\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/prepbytes0211\/\",\"https:\/\/www.instagram.com\/prepbytes\/\",\"https:\/\/www.linkedin.com\/company\/prepbytes\/\",\"https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA\"]},{\"@type\":\"Person\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\",\"name\":\"Prepbytes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g\",\"caption\":\"Prepbytes\"},\"url\":\"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Taking character input in Java","description":"Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources.","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:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/","og_locale":"en_US","og_type":"article","og_title":"Taking character input in Java","og_description":"Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources.","og_url":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-08-03T09:25:45+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Taking character input in Java","datePublished":"2023-08-03T09:25:45+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/"},"wordCount":575,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/","url":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/","name":"Taking character input in Java","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg","datePublished":"2023-08-03T09:25:45+00:00","description":"Java supports a variety of user input mechanisms, such as reading character data from the console or other input sources.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1691054729600-Topic%20%2865%29.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/taking-character-input-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/43.205.93.38\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/prepbytes.com\/blog\/category\/java\/"},{"@type":"ListItem","position":3,"name":"Taking character input in Java"}]},{"@type":"WebSite","@id":"http:\/\/43.205.93.38\/#website","url":"http:\/\/43.205.93.38\/","name":"PrepBytes Blog","description":"ONE-STOP RESOURCE FOR EVERYTHING RELATED TO CODING","publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/43.205.93.38\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"http:\/\/43.205.93.38\/#organization","name":"Prepbytes","url":"http:\/\/43.205.93.38\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/","url":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","contentUrl":"https:\/\/blog.prepbytes.com\/wp-content\/uploads\/2025\/07\/uzxxllgloialmn9mhwfe.webp","width":160,"height":160,"caption":"Prepbytes"},"image":{"@id":"http:\/\/43.205.93.38\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/prepbytes0211\/","https:\/\/www.instagram.com\/prepbytes\/","https:\/\/www.linkedin.com\/company\/prepbytes\/","https:\/\/www.youtube.com\/channel\/UC0xGnHDrjUM1pDEK2Ka5imA"]},{"@type":"Person","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e","name":"Prepbytes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/232042cd1a1ea0e982c96d2a2ec93fb70a8e864e00784491231e7bfe5a9e06b5?s=96&d=mm&r=g","caption":"Prepbytes"},"url":"https:\/\/prepbytes.com\/blog\/author\/gourav-jaincollegedekho-com\/"}]}},"_links":{"self":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/comments?post=17482"}],"version-history":[{"count":2,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17482\/revisions"}],"predecessor-version":[{"id":17486,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17482\/revisions\/17486"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=17482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=17482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=17482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}