

{"id":108996,"date":"2022-04-29T09:00:41","date_gmt":"2022-04-29T03:30:41","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=108996"},"modified":"2026-05-30T16:57:00","modified_gmt":"2026-05-30T11:27:00","slug":"how-to-take-string-input-in-java","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/","title":{"rendered":"How to Take String Input in Java?"},"content":{"rendered":"<p>While taking input from users to create an interactive program, more often than ever, the user will give input in the form of Strings. Strings represent the way we humans interact with each other; thus, it is very important for the programmer to code their program in such a way that the user is able to express themselves in the form of Strings. Let us take a look at how to take String Input in Java.<\/p>\n<h3>Ways to take string input in Java<\/h3>\n<p>Java provides various classes and methods to facilitate String input. They are as follows:<\/p>\n<ul>\n<li>Using BufferedReader class readLine() method.<\/li>\n<li>Using Scanner class nextLine() method.<\/li>\n<li>Through the Scanner class next() method.<\/li>\n<li>Using Command-line arguments of the main() method.<\/li>\n<\/ul>\n<p>Let us discuss each of these methods individually.<\/p>\n<h3>Using the Java BufferedReader class, the readLine() method<\/h3>\n<p>The BufferedReader class is the most native way to take input from users. It is part of the java.io package. However, the BufferedReader class contains a method called readLine() which facilitates user input in the form of Strings.<\/p>\n<p><strong>The signature of the readLine() method is given by:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public String readLine() throws IOException\r\n<\/pre>\n<p>The readLine() method returns the string from the input buffer after removing the terminating character.<\/p>\n<p>At first, we need to call the BufferedReader class object, which is wrapped around the System input, then using that object, we need to call the readLine method, which will facilitate the string user input.<\/p>\n<p><strong>The Syntax of readLine() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\r\nString str= br.ReadLine();\r\n<\/pre>\n<p><strong>Code to understand BufferedReader Input:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.StringInput;\r\nimport java.io.BufferedReader;\r\nimport java.io.IOException;\r\nimport java.io.InputStreamReader;\r\npublic class BufferedReaderInput\r\n{\r\n    public static void main(String[] args) throws IOException \r\n    {\r\n        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \r\n        System.out.println(\"Enter anything: \");\r\n        String str = reader.readLine();\r\n        System.out.println(\"You have Entered: \");\r\n        System.out.println(str);        \r\n    }\r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">\n<p><span style=\"font-weight: 400\">Enter a String<\/span><span style=\"font-weight: 400\">DataFlair String Input Tutorial<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input using Scanner class is: DataFlair String Input Tutorial<\/span><\/p>\n<\/div>\n<p>There is another implementation of the BufferedReader class, which allows the user to give input until a specified character is entered.<\/p>\n<p><strong>Code to take Input using BufferedReader until the User enters any specified character:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.StringInput;\r\nimport java.io.BufferedReader;\r\nimport java.io.IOException;\r\nimport java.io.InputStreamReader;\r\npublic class BufferedReaderInput2\r\n{\r\n    public static void main(String[ ] args) throws IOException \r\n    {\r\n        BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); \r\n        String str = \"\"; \r\n        System.out.println(\"Enter the Strings and when you want to stop entering the Strings, type \u2018.\u2019\");\r\n        while(!str.equals(\".\"))\r\n        { \r\n            System.out.println(\"Enter a String: \"); \r\n            str = br.readLine(); \r\n            System.out.println(\"The String input is: \"+str); \r\n            if(str.contentEquals(\".\"))\r\n                System.out.println(\"FullStop!!!\");\r\n        } \r\n        br.close(); \r\n    }  \r\n}\r\n<\/pre>\n<p><strong>The output of the above code is:<\/strong><\/p>\n<div class=\"code-output\">\n<p><span style=\"font-weight: 400\">Enter the Strings and when you want to stop entering the Strings, type \u2018.\u2019<\/span><span style=\"font-weight: 400\">Enter a String:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">DataFlair<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input is: DataFlair<\/span><\/p>\n<p><span style=\"font-weight: 400\">Enter a String:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Java Tutorial<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input is: Java Tutorial<\/span><\/p>\n<p><span style=\"font-weight: 400\">Enter a String:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Console Input<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input is: Console Input<\/span><\/p>\n<p><span style=\"font-weight: 400\">Enter a String:\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input is: .<\/span><\/p>\n<p><span style=\"font-weight: 400\">FullStop!!!<\/span><\/p>\n<\/div>\n<h3>Using the Scanner class nextLine() method<\/h3>\n<p>The Scanner class, also known as the utility scanner, is the more widely used class for taking user input. It is part of the java.util package. Also, the Scanner class contains the nextLine() method, which allows user input in the form of a string.<\/p>\n<p><strong>The signature of the nextLine() method is given by:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public String nextLine()\r\n<\/pre>\n<p>The method returns the entered string from the input buffer. If the method is unable to find any string input, it throws a NoSuchElementException. Although if we close the scanner object and then try to take input, it throws an IllegalStateException.<\/p>\n<p>First, we need to create a Scanner class object that wraps around the system input. After that, using the object, we call the nextLine() method to take String input.<\/p>\n<p><strong>The Syntax of the nextLine() method in Java:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Scanner sc = new Scanner(System.in);\r\nString str = sc.nextLine();\r\n<\/pre>\n<p><strong>Code to understand the Java Scanner Class Input using nextLine():<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.StringInput;\r\nimport java.util.*;\r\npublic class ScannerClassInput\r\n{\r\n    public static void main(String args[])\r\n    {\r\n        Scanner sc = new Scanner(System.in);\r\n        System.out.println(\"Enter a String\");\r\n        String str = sc.nextLine();\r\n        System.out.println(\"The String input using Scanner class is: \" +str);\r\n    }\r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">\n<p><span style=\"font-weight: 400\">Enter a String<\/span><span style=\"font-weight: 400\">DataFlair String Input Tutorial<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input using Scanner class is: DataFlair String Input Tutorial<\/span><\/p>\n<\/div>\n<h3>Using the Scanner Class next() method<\/h3>\n<p>The Scanner class also has another method that facilitates string input. The next() method lets the programmer take user input in the form of a string, but only accepts the string until the first space is encountered. Therefore, this method can be useful when the programmer needs to ensure that the user does not enter more than one word as input.<\/p>\n<p><strong>The signature of the next() method is given by:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">public String next()<\/pre>\n<p>The next method basically returns the next token that it encounters, i.e., until an empty character is encountered. If there is no next token, it throws a NoSuchElementException. However, if we close the Scanner class object and then call the method, it throws an IllegalStateException.<\/p>\n<p><strong>Code to understand Scanner Class Input using next():<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.StringInput;\r\nimport java.util.*;\r\npublic class ScannerClassInput\r\n{\r\n    public static void main(String args[])\r\n    {\r\n        Scanner sc = new Scanner(System.in);\r\n        System.out.println(\"Enter a String\");\r\n        String str = sc.next();\r\n        System.out.println(\"The String input using Scanner class is: \" +str);\r\n    }\r\n}\r\n<\/pre>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\">\n<p><span style=\"font-weight: 400\">Enter a String<\/span><span style=\"font-weight: 400\">DataFlair String Input Tutorial<\/span><\/p>\n<p><span style=\"font-weight: 400\">The String input using Scanner class is: DataFlair<\/span><\/p>\n<\/div>\n<p>We can see that only the first word is accepted by the next() method. This is useful in various scenarios where only one word needs to be taken as input.<\/p>\n<h3>Using the command-line arguments of the main() method<\/h3>\n<p>We can take string input using command-line arguments, i.e, through the main() method\u2019s arguments. They are generally represented with the args[] variable.<\/p>\n<p>The arguments that are passed when the program is running are referred to as command-line arguments. Therefore, they make the program adaptable without affecting the program.<br \/>\nCommand line arguments in Java are used when a user wants to feed the data to the program that can have a variable length of arguments. It bundles the argument into an array of string types.<\/p>\n<p><strong>Code to understand String input using command-line arguments:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">package com.DataFlair.StringInput;\r\npublic class CommandLineInput\r\n{\r\n    public static void main(String args[]) \r\n    {\r\n        int i = 0;\r\n        for (i = 0; i &lt; args.length; i++) \r\n        {\r\n          String str = args[i];\r\n          System.out.print(str+\" \");\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/commanline-input.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109002\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/commanline-input.webp\" alt=\"commanline input\" width=\"1908\" height=\"1034\" \/><\/a><\/p>\n<p><strong>The output of the above code:<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-weight: 400\">DataFlair String Input Tutorial <\/span><\/div>\n<h3>Conclusion<\/h3>\n<p>So, we can see that there are various techniques to take string input in Java. In this article, we saw how to take user input using the readLine() method of the BufferedReader class, the nextLine() method of the Scanner class, the next () method of the Scanner class, and using command line arguments. However, they are all very important methods and can be used in various ways to take input from the user.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While taking input from users to create an interactive program, more often than ever, the user will give input in the form of Strings. Strings represent the way we humans interact with each other;&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":109001,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[36748,26825,26826,36747],"class_list":["post-108996","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-different-methods-to-take-string-input-in-java","tag-how-to-take-string-input-in-java","tag-taking-input-string-in-java","tag-ways-to-take-string-input-in-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Take String Input in Java? - DataFlair<\/title>\n<meta name=\"description\" content=\"See ways to take string input in java - BufferedReader class readLine(),Scanner class nextLine(),Scanner class next(),Command-line arguments\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Take String Input in Java? - DataFlair\" \/>\n<meta property=\"og:description\" content=\"See ways to take string input in java - BufferedReader class readLine(),Scanner class nextLine(),Scanner class next(),Command-line arguments\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-29T03:30:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-30T11:27:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/take-string-input-in-java.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Take String Input in Java? - DataFlair","description":"See ways to take string input in java - BufferedReader class readLine(),Scanner class nextLine(),Scanner class next(),Command-line arguments","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:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/","og_locale":"en_US","og_type":"article","og_title":"How to Take String Input in Java? - DataFlair","og_description":"See ways to take string input in java - BufferedReader class readLine(),Scanner class nextLine(),Scanner class next(),Command-line arguments","og_url":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-04-29T03:30:41+00:00","article_modified_time":"2026-05-30T11:27:00+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/take-string-input-in-java.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"How to Take String Input in Java?","datePublished":"2022-04-29T03:30:41+00:00","dateModified":"2026-05-30T11:27:00+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/"},"wordCount":906,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/take-string-input-in-java.webp","keywords":["different methods to take string input in java","How to Take String Input in Java?","taking input string in java","ways to take string input in java"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/","url":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/","name":"How to Take String Input in Java? - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/take-string-input-in-java.webp","datePublished":"2022-04-29T03:30:41+00:00","dateModified":"2026-05-30T11:27:00+00:00","description":"See ways to take string input in java - BufferedReader class readLine(),Scanner class nextLine(),Scanner class next(),Command-line arguments","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/take-string-input-in-java.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/take-string-input-in-java.webp","width":1200,"height":628,"caption":"take string input in java"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/how-to-take-string-input-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Java Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/java\/"},{"@type":"ListItem","position":3,"name":"How to Take String Input in Java?"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=108996"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108996\/revisions"}],"predecessor-version":[{"id":148552,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108996\/revisions\/148552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/109001"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=108996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=108996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=108996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}