{"id":17193,"date":"2023-07-19T04:51:56","date_gmt":"2023-07-19T04:51:56","guid":{"rendered":"https:\/\/www.prepbytes.com\/blog\/?p=17193"},"modified":"2024-07-22T10:56:53","modified_gmt":"2024-07-22T10:56:53","slug":"java-user-input","status":"publish","type":"post","link":"https:\/\/prepbytes.com\/blog\/java-user-input\/","title":{"rendered":"Java  User Input"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg\" alt=\"\" \/><\/p>\n<p>User input is a critical aspect of interactive applications, allowing programs to receive data from users and respond accordingly. In Java, handling user input is typically achieved using the Scanner class from the java.util package. This class provides methods to read various types of input, such as strings, integers, and floating-point numbers, from different input sources, including the keyboard and files. This article delves into the essentials of handling user input in Java, illustrating its importance and practical applications.<\/p>\n<h2>Different ways how to take input in Java<\/h2>\n<p>Here are the different types of approaches how to take input from users in Java : <\/p>\n<p><strong>1. Using the Scanner Class:<\/strong><br \/>\nJava&#8217;s <code>Scanner<\/code> class is a versatile tool for reading user input from the console. It provides various methods, such as <code>next()<\/code>, <code>nextInt()<\/code>, <code>nextLine()<\/code>, etc., to read different data types from the user.<\/p>\n<pre><code>import java.util.Scanner;\n\npublic class UserInputExample {\n    public static void main(String[] args) {\n        Scanner scanner = new Scanner(System.in);\n        System.out.print(\"Enter your name: \");\n        String name = scanner.nextLine();\n        System.out.println(\"Hello, \" + name + \"!\");\n        scanner.close();\n    }\n}<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Enter your name: John\nHello, John!<\/code><\/pre>\n<p><strong>2. Using the BufferedReader Class:<\/strong><br \/>\nThe <code>BufferedReader<\/code> class, available in the <code>java.io<\/code> package, provides efficient reading of characters from an input stream. It can be used to read user input by wrapping it around an <code>InputStreamReader<\/code> object.<\/p>\n<pre><code>import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class UserInputExample {\n    public static void main(String[] args) throws IOException {\n        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n        System.out.print(\"Enter your age: \");\n        int age = Integer.parseInt(reader.readLine());\n        System.out.println(\"You are \" + age + \" years old.\");\n        reader.close();\n    }\n}<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre><code>Enter your age: 25\nYou are 25 years old.<\/code><\/pre>\n<p><strong>3. Using Command-Line Arguments:<\/strong><br \/>\nJava allows you to pass command-line arguments to a program when executing it. These arguments can be accessed using the <code>args<\/code> parameter in the <code>main()<\/code> method.<\/p>\n<pre><code>public class UserInputExample {\n    public static void main(String[] args) {\n        if (args.length &gt; 0) {\n            String name = args[0];\n            System.out.println(\"Hello, \" + name + \"!\");\n        } else {\n            System.out.println(\"Please provide your name as a command-line argument.\");\n        }\n    }\n}<\/code><\/pre>\n<p><strong>Output (when executed with the command-line argument &quot;John&quot;):<\/strong><\/p>\n<pre><code>Hello, John!<\/code><\/pre>\n<p><strong>Output (when executed without any command-line arguments):<\/strong><\/p>\n<pre><code>Please provide your name as a command-line argument.<\/code><\/pre>\n<p><strong>4. GUI Input:<\/strong><br \/>\nFor graphical applications, Java provides various components (such as text fields, buttons, and dropdowns) that allow users to input data. Event handling mechanisms can be used to capture and process user input from these components.<\/p>\n<pre><code>import javax.swing.JOptionPane;\n\npublic class UserInputExample {\n    public static void main(String[] args) {\n        String name = JOptionPane.showInputDialog(\"Enter your name:\");\n        JOptionPane.showMessageDialog(null, \"Hello, \" + name + \"!\");\n    }\n}<\/code><\/pre>\n<p><strong>Output:<\/strong><br \/>\nA dialog box will appear, prompting the user to enter their name. After entering the name and clicking &quot;OK&quot;, a message dialog box will display the greeting.<\/p>\n<p><strong>Conclusion<\/strong><br \/>\nHandling user input is an essential aspect of building interactive Java applications. The Scanner class provides a versatile and straightforward way to read various types of input, whether from the keyboard or files. By mastering user input handling, you can create more dynamic and responsive programs. Remember to validate inputs, handle exceptions gracefully, and close the Scanner object when done to ensure robust and efficient code.<\/p>\n<h2>Frequently Asked Questions (FAQs) related to Java User Input<\/h2>\n<p>Here are some of the most commonly asked FAQs related to how to take input in Java: <\/p>\n<p><strong>1. How do I read user input in Java?<\/strong><br \/>\nYou can read user input in Java using the Scanner class. First, import java.util.Scanner, then create a Scanner object to read input from System.in.<\/p>\n<pre><code>import java.util.Scanner;\n\nScanner scanner = new Scanner(System.in);\nSystem.out.print(\"Enter your name: \");\nString name = scanner.nextLine();\nSystem.out.println(\"Hello, \" + name + \"!\");<\/code><\/pre>\n<p><strong>2. What types of input can the Scanner class read?<\/strong><br \/>\nThe Scanner class can read various types of input, including:<\/p>\n<pre><code>Strings (nextLine(), next())\nIntegers (nextInt())\nFloating-point numbers (nextFloat(), nextDouble())\nBooleans (nextBoolean())<\/code><\/pre>\n<p><strong>3. How do I handle multiple inputs in a single line?<\/strong><br \/>\nTo handle multiple inputs in a single line, you can use the next() method to read each input sequentially.<\/p>\n<pre><code>System.out.print(\"Enter your age and salary: \");\nint age = scanner.nextInt();\ndouble salary = scanner.nextDouble();\nSystem.out.println(\"Age: \" + age + \", Salary: \" + salary);<\/code><\/pre>\n<p><strong>4. How do I check if the user input is of the expected type?<\/strong><br \/>\nYou can use the hasNextXXX() methods to check if the next input is of the expected type before reading it. For example, hasNextInt() checks if the next input is an integer.<\/p>\n<pre><code>if (scanner.hasNextInt()) {\n    int number = scanner.nextInt();\n    System.out.println(\"You entered: \" + number);\n} else {\n    System.out.println(\"Invalid input, not an integer.\");\n}<\/code><\/pre>\n<p><strong>5. How do I handle input exceptions in Java?<\/strong><br \/>\nUse try-catch blocks to handle input exceptions, such as InputMismatchException, which occurs when the input type doesn&#8217;t match the expected type.<\/p>\n<pre><code>try {\n    System.out.print(\"Enter an integer: \");\n    int number = scanner.nextInt();\n    System.out.println(\"You entered: \" + number);\n} catch (InputMismatchException e) {\n    System.out.println(\"Invalid input, please enter an integer.\");\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>User input is a critical aspect of interactive applications, allowing programs to receive data from users and respond accordingly. In Java, handling user input is typically achieved using the Scanner class from the java.util package. This class provides methods to read various types of input, such as strings, integers, and floating-point numbers, from different input [&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-17193","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>Java User Input<\/title>\n<meta name=\"description\" content=\"Java user input is critical in developing interactive and dynamic applications and allows developers to gather data, personalize experiences.\" \/>\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\/java-user-input\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java User Input\" \/>\n<meta property=\"og:description\" content=\"Java user input is critical in developing interactive and dynamic applications and allows developers to gather data, personalize experiences.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prepbytes.com\/blog\/java-user-input\/\" \/>\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-07-19T04:51:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-22T10:56:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/\"},\"author\":{\"name\":\"Prepbytes\",\"@id\":\"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e\"},\"headline\":\"Java User Input\",\"datePublished\":\"2023-07-19T04:51:56+00:00\",\"dateModified\":\"2024-07-22T10:56:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/\"},\"wordCount\":535,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/43.205.93.38\/#organization\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg\",\"articleSection\":[\"Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/prepbytes.com\/blog\/java-user-input\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/\",\"url\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/\",\"name\":\"Java User Input\",\"isPartOf\":{\"@id\":\"http:\/\/43.205.93.38\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg\",\"datePublished\":\"2023-07-19T04:51:56+00:00\",\"dateModified\":\"2024-07-22T10:56:53+00:00\",\"description\":\"Java user input is critical in developing interactive and dynamic applications and allows developers to gather data, personalize experiences.\",\"breadcrumb\":{\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prepbytes.com\/blog\/java-user-input\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage\",\"url\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg\",\"contentUrl\":\"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prepbytes.com\/blog\/java-user-input\/#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\":\"Java User Input\"}]},{\"@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":"Java User Input","description":"Java user input is critical in developing interactive and dynamic applications and allows developers to gather data, personalize experiences.","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\/java-user-input\/","og_locale":"en_US","og_type":"article","og_title":"Java User Input","og_description":"Java user input is critical in developing interactive and dynamic applications and allows developers to gather data, personalize experiences.","og_url":"https:\/\/prepbytes.com\/blog\/java-user-input\/","og_site_name":"PrepBytes Blog","article_publisher":"https:\/\/www.facebook.com\/prepbytes0211\/","article_published_time":"2023-07-19T04:51:56+00:00","article_modified_time":"2024-07-22T10:56:53+00:00","og_image":[{"url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg","type":"","width":"","height":""}],"author":"Prepbytes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prepbytes","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#article","isPartOf":{"@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/"},"author":{"name":"Prepbytes","@id":"http:\/\/43.205.93.38\/#\/schema\/person\/3f7dc4ae851791d5947a7f99df363d5e"},"headline":"Java User Input","datePublished":"2023-07-19T04:51:56+00:00","dateModified":"2024-07-22T10:56:53+00:00","mainEntityOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/"},"wordCount":535,"commentCount":0,"publisher":{"@id":"http:\/\/43.205.93.38\/#organization"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg","articleSection":["Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/prepbytes.com\/blog\/java-user-input\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/","url":"https:\/\/prepbytes.com\/blog\/java-user-input\/","name":"Java User Input","isPartOf":{"@id":"http:\/\/43.205.93.38\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage"},"image":{"@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage"},"thumbnailUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg","datePublished":"2023-07-19T04:51:56+00:00","dateModified":"2024-07-22T10:56:53+00:00","description":"Java user input is critical in developing interactive and dynamic applications and allows developers to gather data, personalize experiences.","breadcrumb":{"@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prepbytes.com\/blog\/java-user-input\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#primaryimage","url":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg","contentUrl":"https:\/\/prepbytes-misc-images.s3.ap-south-1.amazonaws.com\/assets\/1689742162577-Topic%20%2813%29.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/prepbytes.com\/blog\/java-user-input\/#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":"Java User Input"}]},{"@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\/17193","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=17193"}],"version-history":[{"count":4,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17193\/revisions"}],"predecessor-version":[{"id":19293,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/posts\/17193\/revisions\/19293"}],"wp:attachment":[{"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/media?parent=17193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/categories?post=17193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prepbytes.com\/blog\/wp-json\/wp\/v2\/tags?post=17193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}