{"id":10407,"date":"2022-09-23T15:48:29","date_gmt":"2022-09-23T10:18:29","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/"},"modified":"2022-09-23T15:48:29","modified_gmt":"2022-09-23T10:18:29","slug":"solved-creating-a-loop-from-java-input","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/","title":{"rendered":"[Solved] Creating a loop from Java input"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-39856100\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"39856100\" data-parentid=\"39854567\" data-score=\"0\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Although it&#8217;s not entirely clear what you&#8217;re trying to achieve I have tried to modify your code from your original post to make it more readable and function the way you want. Please see my comments in the code below, I tried to prefix all of my comments with &#8220;EDIT&#8221; so you could easily identify which are mine.<\/p>\n<pre><code>\/\/EDIT: added new import to help with validating user input\nimport java.util.InputMismatchException;\nimport java.util.Scanner;\n\/\/EDIT: removed import that is no longer needed, see code changes below\n\/\/import java.io.BufferedReader;\nimport java.io.IOException;\n\/\/EDIT: removed import that is no longer needed, see code changes below\n\/\/import java.io.InputStreamReader;\nimport java.util.Random;\n\n\/\/EDIT: changed class name to java standard naming convention using uppercase for first letter.\npublic class StringVariables {\n\n    \/\/ EDIT: this variable is not used, I removed it\n    \/\/ private static boolean isValid;\n\n    public static void main(String[] args) throws NumberFormatException,\n            IOException {\n\n        \/\/ user inputs their name in this section\n        Scanner user_input = new Scanner(System.in);\n\n        String first_name;\n        System.out.print(\"Enter Your First Name: \");\n        first_name = user_input.next();\n\n        String last_name;\n        System.out.print(\"Enter Your Last Name: \");\n        last_name = user_input.next();\n\n        String full_name;\n        full_name = first_name + \" \" + last_name;\n\n        System.out.println(full_name + \" Is Now Playing\");\n\n        \/\/ this is the shuffle portion as well as something to see if a number\n        \/\/ is not inputed\n        \/\/ EDIT: removed this variable as it is no longer used in the code that\n        \/\/ follows.\n        \/\/ boolean testing = false;\n        \/\/ EDIT: Removed this variable in favor of using Scanner.nextInt() in\n        \/\/ the code below\n        \/\/ String pos = \"\";\n\n        \/\/ EDIT: Added this variable and initialized to an invalid value so that\n        \/\/ we can loop until a valid value is entered.\n        int numShuffles = -1;\n        while (numShuffles &lt; 0) {\n            \/\/ EDIT: This variable is not needed with the new logic\n            \/\/ testing = false;\n            \/\/ EDIT: This is not needed, you already have a Scanner object above\n            \/\/ called user_input\n            \/\/ Scanner sc = new Scanner(System.in);\n            System.out\n                    .println(\"How many times do you want the numbers shuffled? \");\n\n            try {\n                \/\/ EDIT: modified the lines below to fix infinite loop, forgot\n                \/\/ about certain Scanner behavior so switched back to\n                \/\/ Integer.parseInt\n                String inputText = user_input.next();\n                numShuffles = Integer.parseInt(inputText);\n            } catch (NumberFormatException inputException) {\n                System.out.print(\"Please enter a valid number. \");\n            }\n        } \/\/ EDIT: added closing bracket here\n            \/\/ EDIT: none of the code commented out below is needed when using\n            \/\/ the new code above.\n        \/\/ for(int i=0; i&lt;pos.length();i++)\n        \/\/ {\n        \/\/ if(!Character.isDigit(pos.charAt(i)))\n        \/\/ testing = true;\n        \/\/ }\n        \/\/ if(testing == true)\n        \/\/ {\n        \/\/ System.out.print(\"Enter only numbers..   \");\n        \/\/ continue;\n        \/\/ }\n        \/\/\n        \/\/ else\n        \/\/ {\n        \/\/ int key = Integer.parseInt(pos);\n        \/\/\n        \/\/\n        \/\/ break;\n\n        \/\/ here is going to be the loop for shuffles\n\n        \/\/ we are now going to generate their random number and add a delay\n        \/\/ after completing their name fields\n\n        delay(2000);\n        System.out\n                .println(\" You will be given a hand  of 3 random numbers between 7-13\");\n\n        delay(2000);\n        System.out\n                .println(\" Then, the computer will add the random numbers and  if it is equal to 31, you win.\");\n\n        \/*\n         * end of explanation of the game, next i will create a new screen with\n         * the user's name and numbers\n         *\/\n\n        delay(4000);\n        \/\/ EDIT: rather than repeating the same code over and over just use a\n        \/\/ loop if you want to print 25 blank lines.\n        for (int i = 0; i &lt; 25; i++)\n            System.out.println(\" \");\n        \/\/ EDIT: see previous comment, removed duplicate code\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n        \/\/ System.out.println(\" \");\n\n        System.out.println(\"User playing: \" + full_name);\n\n        System.out.println(\"Your lucky numbers are...\");\n\n        \/\/ random number generator\n        \/\/ EDIT: This BufferedReader is not needed with changes to code below\n        \/\/ BufferedReader br = new BufferedReader(new\n        \/\/ InputStreamReader(System.in));\n        Random random = new Random();\n\n        \/\/ EDIT: removed the following two lines to simplify the looping logic\n        \/\/ int ch = 1;\n        \/\/ while (ch == 1) {\n        while (true) {\n\n            \/\/ EDIT: your comment is wrong, you're creating 3 numbers here not 2\n            \/\/ get two random numbers between 7 and 13\n            \/\/ EDIT: no need to create a new Random inside the loop, you can\n            \/\/ re-use a single instance.\n            \/\/ Random r = new Random();\n            \/\/ EDIT: This approach is fine, but I think using the Random class\n            \/\/ is easier to read so I replaced your code with code that uses\n            \/\/ Random\n            \/\/ int num1 = 7 + (int) (Math.random() * (7));\n            \/\/ int num2 = 7 + (int) (Math.random() * (7));\n            \/\/ int num3 = 7 + (int) (Math.random() * (7));\n\n            \/\/ EDIT: based on your replies it seems like you want to give the user\n            \/\/ several changes for each run of the game and this is what you meant\n            \/\/ by \"shuffle\". I have implemented that feature below with the for loop.\n            boolean isWinner = false;\n            for (int i = 0; i &lt; numShuffles; i++) {\n                int num1 = 7 + random.nextInt(7);\n                int num2 = 7 + random.nextInt(7);\n                int num3 = 7 + random.nextInt(7);\n\n                System.out.println(num1 + \" + \" + num2 + \" + \" + num3 + \" = \"\n                        + (num1 + num2 + num3));\n\n                \/\/ EDIT: you never use the variable i so I removed this code.\n                \/\/ int i = 0;\n                \/\/ {\n                \/\/ System.out.println(num1 + num2 + num3);\n                \/\/ i++;\n                \/\/ }\n\n                if (num1 + num2 + num3 == 31) {\n                    isWinner = true;\n                    System.out\n                            .println(\"Congratulations !! You are the Lucky Winner !!!!\");\n                    break;\n                }\n            }\n            if (!isWinner)\n                System.out.println(\"Better Luck Next Time\");\n\n            \/\/ the play again menu. this blocks any input besides 1 or 0\n\n            \/\/ EDIT: again, re-use the existing scanner\n            \/\/ Scanner sc = new Scanner(System.in);\n            \/\/ EDIT: There is a much simpler and easier-to-read way to do this\n            \/\/ so I have removed your code and added new code after.\n            \/\/ EDIT: Also this code does not work correctly, it fails to exit\n            \/\/ properly when the user enters a letter.\n            \/\/ while (true) {\n            \/\/ System.out.println(\"Want To Play Again ? ANY # = YES, ANY LETTER = NO\");\n            \/\/ String input = user_input.next();\n            \/\/ int intInputValue = 0;\n            \/\/ try {\n            \/\/\n            \/\/ intInputValue = Integer.parseInt(input);\n            \/\/ Integer.parseInt(input);\n            \/\/ break;\n            \/\/ } catch (NumberFormatException ne) {\n            \/\/ System.out.println(\"Input is not a number, type 1 to continue, or any letter to quit\");\n            \/\/\n            \/\/ ch = Integer.parseInt(br.readLine());\n            \/\/ }\n            \/\/\n            \/\/ }\n            \/\/ EDIT: here is the new code, see previous comment.\n            System.out\n                    .println(\"Do you want to play again? (If you do enter y or yes) \");\n            String input = user_input.next();\n            if (!\"y\".equalsIgnoreCase(input) &amp;&amp; !\"yes\".equalsIgnoreCase(input)) {\n                break;\n            }\n        }\n\n        \/\/ EDIT: close the scanner when you're finished with it.\n        user_input.close();\n    }\n\n    \/\/ delay field\n\n    public static void delay(int millis) {\n        try {\n            Thread.sleep(millis);\n        } catch (InterruptedException exp) {\n\n            \/\/ delay field\n\n        }\n    }\n}\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">2<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Creating a loop from Java input <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Although it&#8217;s not entirely clear what you&#8217;re trying to achieve I have tried to modify your code from your original post to make it more readable and function the way you want. Please see my comments in the code below, I tried to prefix all of my comments with &#8220;EDIT&#8221; so you could easily &#8230; <a title=\"[Solved] Creating a loop from Java input\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\" aria-label=\"More on [Solved] Creating a loop from Java input\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[323,391],"class_list":["post-10407","post","type-post","status-publish","format-standard","hentry","category-solved","tag-java","tag-loops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Creating a loop from Java input - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Creating a loop from Java input - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Although it&#8217;s not entirely clear what you&#8217;re trying to achieve I have tried to modify your code from your original post to make it more readable and function the way you want. Please see my comments in the code below, I tried to prefix all of my comments with &#8220;EDIT&#8221; so you could easily ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-23T10:18:29+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Creating a loop from Java input\",\"datePublished\":\"2022-09-23T10:18:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\"},\"wordCount\":76,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"java\",\"loops\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\",\"name\":\"[Solved] Creating a loop from Java input - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-09-23T10:18:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Creating a loop from Java input\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Creating a loop from Java input - JassWeb","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:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Creating a loop from Java input - JassWeb","og_description":"[ad_1] Although it&#8217;s not entirely clear what you&#8217;re trying to achieve I have tried to modify your code from your original post to make it more readable and function the way you want. Please see my comments in the code below, I tried to prefix all of my comments with &#8220;EDIT&#8221; so you could easily ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/","og_site_name":"JassWeb","article_published_time":"2022-09-23T10:18:29+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Creating a loop from Java input","datePublished":"2022-09-23T10:18:29+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/"},"wordCount":76,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["java","loops"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/","url":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/","name":"[Solved] Creating a loop from Java input - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-09-23T10:18:29+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-creating-a-loop-from-java-input\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Creating a loop from Java input"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/10407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=10407"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/10407\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=10407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=10407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=10407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}