{"id":77654,"date":"2020-04-09T11:14:39","date_gmt":"2020-04-09T05:44:39","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=77654"},"modified":"2020-04-09T11:14:39","modified_gmt":"2020-04-09T05:44:39","slug":"java-console","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-console\/","title":{"rendered":"Java Console Class &#8211; Ways to read Java Console Input"},"content":{"rendered":"<p>There are many situations when we need to take the input from the user according to his\/her requirement. In such cases we can\u2019t take the inputs in our program rather, we have to take input from the console at the execution of the program.<\/p>\n<p>Java provides different ways to take input and provide output on the console. In this article, we will learn how to take console input from the user using <strong>java console<\/strong>.<\/p>\n<p>We will learn each way to use a console for user input and output in Java with the help of examples.<\/p>\n<p>So, let\u2019s start exploring different ways to read input from the Java console.<\/p>\n<h3>Java Console<\/h3>\n<p>There are three ways to take input from console in Java<\/p>\n<ol>\n<li>Using Java BufferedReader class<\/li>\n<li>Through Java Scanner class<\/li>\n<li>Using Java Console class<\/li>\n<\/ol>\n<h4>1. Using BufferedReader class<\/h4>\n<p>Using BufferedReader class is the classical method of taking input from the console. Java has introduced this technique since Java 1. The BufferedClass reads data line by line through the readLine() method. This class wraps the System.in with an InputStreamReader.<\/p>\n<p>To use these classes, we need to use the java.io package. Let&#8217;s see an example to understand this method of reading input from the console.<\/p>\n<p><strong>Code to read input using the BufferedReader class:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.consoleinput;\n \n\/\/Java program to demonstrate BufferedReader\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class BufferedReaderDemo\n{\n    public static void main(String[] args) throws IOException \n    {\n        InputStreamReader input = new InputStreamReader(System.in); \n        \/\/Taking the input data using the BufferedReader class\n        BufferedReader reader = new BufferedReader(input); \n\n        \/\/ Reading data using readLine\n        System.out.println(\"Please enter the input:\");\n        String name = reader.readLine();\n    \n        \/\/ Printing the read line\n        System.out.println(\"You entered: \");\n        System.out.println(name);        \n    }\n}\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Please enter the input:<br \/>\nTechVidvan&#8217;s Java Tutorial<br \/>\nYou entered:<br \/>\nTechVidvan&#8217;s Java Tutorial<\/div>\n<h5>Using BufferedReader class until the user writes \u201cover\u201d<\/h5>\n<p>We can also use the BufferedReader class to take the input from the user until the user types any string that matches with our test String. Let\u2019s take an example to understand this.<\/p>\n<p><strong>Code to understand this example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.consoleinput;\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class BufferedReaderDemo\n{\n    public static void main(String[ ] args) throws IOException \n    {\n        InputStreamReader input = new InputStreamReader(System.in); \n        \/\/Taking the input data using the BufferedReader class\n        BufferedReader reader = new BufferedReader(input); \n\n\n        String name = \"\"; \n        System.out.println(\"Enter the names and when you want to stop entering the name, type Over\");\n\n        while(!name.equals(\"Over\"))\n        { \n\n            System.out.println(\"Enter the name: \"); \n            \/\/ Reading data using readLine() method\n            name = reader.readLine(); \n          \n            \/\/ Printing the read line\n            System.out.println(\"The entered name is: \"+name); \n           \n            if(name.contentEquals(\"Over\"))\n                System.out.println(\"You entered Over!!\");\n        } \n        reader.close(); \n        input.close(); \n    }  \n}\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Enter the names and when you want to stop entering the name, type Over<br \/>\nEnter the name:<br \/>\nAvina<br \/>\nThe entered name is: Avina<br \/>\nEnter the name:<br \/>\nNeha<br \/>\nThe entered name is: Neha<br \/>\nEnter the name:<br \/>\nRavi<br \/>\nThe entered name is: Ravi<br \/>\nEnter the name:<br \/>\nOver<br \/>\nThe entered name is: Over<br \/>\nYou entered Over!!<\/div>\n<p><em><strong>Note:<\/strong> The method readLine() is used to take the String input from the user. If you want to read the other types, we can use the methods like<\/em><\/p>\n<ul>\n<li><strong>Integer.parseInt():<\/strong> to read int values<\/li>\n<li><strong>Double.parseDouble():<\/strong> to read double values<\/li>\n<li><strong>Float.parseFloat():<\/strong> to read float values<\/li>\n<\/ul>\n<p>To read multiple values, we use the split() method.<\/p>\n<h4>2. Using Scanner class<\/h4>\n<p>The second way to take input from the user is using the java.util.Scanner class. It is probably the best choice of taking console input from the user. This class reads the input from the user in the console or the command line.<\/p>\n<p>The other use of Scanner class is to parse the strings and primitive types with the help of java regular expressions.<\/p>\n<p>The\u00a0 Scanner class is present in the java.util package. This class obtains the input from System.in (standard input stream).<\/p>\n<p>Secondly, we also use this Console class to read password-like input without displaying the characters of the input password on the console.<\/p>\n<p><strong>Syntax of using Scanner class:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Scanner scanner = new Scanner(System.in);<\/pre>\n<h5>Advantages<\/h5>\n<ul>\n<li>The Scanner class provides useful methods like\u00a0 nextInt(), nextDouble(), nextFloat(), etc, for parsing primitive data types.<\/li>\n<li>The Scanner class uses regular expressions and we can use these regular expressions to find tokens.<\/li>\n<\/ul>\n<h5>Drawback<\/h5>\n<ul>\n<li>The methods of Scanner class for reading values are not synchronized<\/li>\n<\/ul>\n<h5>Input Types of the Scanner class<\/h5>\n<p>To read the values of various data types, the Scanner class provides several methods. The following table shows these methods:<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Method<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>nextBoolean()<\/td>\n<td>This method reads a boolean value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextByte()<\/td>\n<td>This method reads a byte value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextDouble()<\/td>\n<td>This method reads a double value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextFloat()<\/td>\n<td>This method reads a float value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextInt()<\/td>\n<td>This method reads an int value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextLine()<\/td>\n<td>This method reads a String value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextLong()<\/td>\n<td>This method reads a long value from the user<\/td>\n<\/tr>\n<tr>\n<td>nextShort()<\/td>\n<td>This method reads a short value from the user<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Code to take input from the user using the Scanner class:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.consoleinput;\n\nimport java.util.Scanner;\npublic class ScannerClassDemo\n{\n    \/\/ Java program to understand the use of Scanner in Java\n    public static void main(String args[])\n    {\n        \/\/ Using Scanner for Getting Input from User\n        Scanner sc = new Scanner(System.in);\n\n        System.out.println(\"Enter a string\");\n        String string = sc.nextLine();\n        System.out.println(\"You entered string: \" +string);\n\n        System.out.println(\"Enter a number\");\n        int num = sc.nextInt();\n        System.out.println(\"You entered integer: \" +num);\n\n        System.out.println(\"Enter a float number\");\n        float fnum = sc.nextFloat();\n        System.out.println(\"You entered float: \" +fnum);\n    }\n}\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Enter a string<br \/>\nTechVidvan<br \/>\nYou entered string: TechVidvan<br \/>\nEnter a number<br \/>\n5<br \/>\nYou entered integer: 5<br \/>\nEnter a float number<br \/>\n87.4<br \/>\nYou entered float: 87.4<\/div>\n<h4>3. Using the Java Console class<\/h4>\n<p>The Java Console class is the third technique to take input from the user through the console. The Console class was introduced since Java 1.5. This class is present in the java.io package.<\/p>\n<p>There are several methods in Console class that help in reading input texts and passwords from the console, without displaying it on the screen. Secondly, we also use this Console class to read password-like input without displaying the characters of the input password on the console.<\/p>\n<h5>Advantages<\/h5>\n<ul>\n<li>Reading password without displaying the characters of the password on the console.<\/li>\n<li>Reading methods of the console class are synchronized.<\/li>\n<li>We can also use the format string syntax with the Console class<\/li>\n<\/ul>\n<h5>Drawback<\/h5>\n<ul>\n<li>It does not work in a non-interactive environment (such as in an IDE).<\/li>\n<\/ul>\n<h4>Methods of Java Console class<\/h4>\n<p>The following table shows various methods of Java Console class:<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Method<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td>Reader reader()<\/td>\n<td>This method gets the object of the Reader class related to the console.<\/td>\n<\/tr>\n<tr>\n<td>String readLine()<\/td>\n<td>This method reads a single line of text from the console.<\/td>\n<\/tr>\n<tr>\n<td>String readLine(String fmt, Object&#8230; args)<\/td>\n<td>This method provides a formatted prompt before reading the input text from the console.<\/td>\n<\/tr>\n<tr>\n<td>char[ ] readPassword()<\/td>\n<td>It is used to read a password that is visible on the console screen.<\/td>\n<\/tr>\n<tr>\n<td>char[ ] readPassword(String fmt, Object&#8230; args)<\/td>\n<td>This method provides a formatted prompt before reading the password that is not visible on the console screen.<\/td>\n<\/tr>\n<tr>\n<td>Console format(String fmt, Object&#8230; args)<\/td>\n<td>This method displays a formatted string to the console output stream.<\/td>\n<\/tr>\n<tr>\n<td>Console printf(String format, Object&#8230; args)<\/td>\n<td>This method prints a string to the console output stream.<\/td>\n<\/tr>\n<tr>\n<td>PrintWriter writer()<\/td>\n<td>This method is used to get the object of the PrintWriter class.<\/td>\n<\/tr>\n<tr>\n<td>void flush()<\/td>\n<td>This method is used to flush the console.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Code to take input from user using the Console class:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.techvidvan.consoleinput;\n\npublic class Sample \n{\n    public static void main(String[] args) \n    {        \n        \/\/ Using Console to input data from user\n        System.out.println(\"Enter something\");\n        String name = System.console().readLine();\n        System.out.println(\"You entered: \" +name);\n    }\n}\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/04\/Screenshot-from-2020-03-07-17-30-07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78201\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/04\/Screenshot-from-2020-03-07-17-30-07.png\" alt=\"Java console class example\" width=\"1299\" height=\"741\" \/><\/a><\/p>\n<p><strong>Java Console Example to read password<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import java.io.Console; \nclass Sample\n{   \n     public static void main(String args[])\n     {   \n         Console c=System.console();   \nSystem.out.println(\"Enter password: \");   \nchar[ ] ch=c.readPassword();   \nString pass=String.valueOf(ch);\n\/\/converting char array into string   \nSystem.out.println(\"Password is: \"+pass);   \n}   \n} \n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><strong><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/04\/Screenshot-from-2020-03-07-17-41-55.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78202\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/04\/Screenshot-from-2020-03-07-17-41-55.png\" alt=\"Read input from java console\" width=\"1299\" height=\"741\" \/><\/a><\/strong><\/p>\n<h3>Summary<\/h3>\n<p>In this Java article, we saw three different ways to get the input from the user and then process it and show the desired output to the user on the console.<\/p>\n<p>We can use any of the three classes to get the console input from the user which are BufferedReader class, Scanner class, and Java Console class. There are several methods to read the input from the user. We discussed all these three ways with the example.<\/p>\n<p>Thank you for reading our article. Hope you enjoyed it. Do share it on Social Media.<\/p>\n<p>Keep Learning \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many situations when we need to take the input from the user according to his\/her requirement. In such cases we can\u2019t take the inputs in our program rather, we have to take&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":78169,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[2329,2330,2331,2332],"class_list":["post-77654","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java-bufferedclass","tag-java-console","tag-java-console-class","tag-read-input-from-java-console"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java Console Class - Ways to read Java Console Input - TechVidvan<\/title>\n<meta name=\"description\" content=\"Java console class - Way to read input from the java console. Learn other ways also which are Using BufferedReader class and Using Scanner class.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/java-console\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Console Class - Ways to read Java Console Input - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Java console class - Way to read input from the java console. Learn other ways also which are Using BufferedReader class and Using Scanner class.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-console\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-09T05:44:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/ways-to-read-java-console-input.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Console Class - Ways to read Java Console Input - TechVidvan","description":"Java console class - Way to read input from the java console. Learn other ways also which are Using BufferedReader class and Using Scanner class.","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:\/\/techvidvan.com\/tutorials\/java-console\/","og_locale":"en_US","og_type":"article","og_title":"Java Console Class - Ways to read Java Console Input - TechVidvan","og_description":"Java console class - Way to read input from the java console. Learn other ways also which are Using BufferedReader class and Using Scanner class.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-console\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-04-09T05:44:39+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/ways-to-read-java-console-input.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Java Console Class &#8211; Ways to read Java Console Input","datePublished":"2020-04-09T05:44:39+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/"},"wordCount":1104,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/ways-to-read-java-console-input.jpg","keywords":["java bufferedclass","Java Console","Java console class","read input from java console"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-console\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/","url":"https:\/\/techvidvan.com\/tutorials\/java-console\/","name":"Java Console Class - Ways to read Java Console Input - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/ways-to-read-java-console-input.jpg","datePublished":"2020-04-09T05:44:39+00:00","description":"Java console class - Way to read input from the java console. Learn other ways also which are Using BufferedReader class and Using Scanner class.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-console\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/ways-to-read-java-console-input.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/04\/ways-to-read-java-console-input.jpg","width":802,"height":420,"caption":"Java Console Class"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-console\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Java Console Class &#8211; Ways to read Java Console Input"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/77654","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=77654"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/77654\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/78169"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=77654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=77654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=77654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}