{"version":"1.0","provider_name":"Rainbow Dash Network","provider_url":"http:\/\/rainbowdash.net\/","type":"link","title":"aodhidbrbeididbe's status on Monday, 13-Jun-11 23:21:39 UTC","author_name":"aodhidbrbeididbe","author_url":"http:\/\/rainbowdash.net\/aodhidbrbeididbe","url":"http:\/\/rainbowdash.net\/notice\/184184","html":"import java.util.Scanner;\npublic class main {\n\n\n\tpublic static void main(String[] args) {\n\t\tdouble a;\n\t\tint c;\n\t\tint d;\n\t\tint s = 0;\n\t\tint f = 0;\n\t\tScanner in = new Scanner(<a href=\"http:\/\/System.in\/\" title=\"http:\/\/System.in\/\" rel=\"nofollow external\">System.in<\/a>);\n\t\tSystem.out.println(&quot;GUESS THE NUMBER!&quot;);\n\t\twhile(f &lt; 10) {\n\t\t\ta = Math.floor(Math.random()*10);\n\t\t\tc = (int)a;\n\t\t\td = in.nextInt();\n\t\t\tif(d == c) {\n\t\t\t\tSystem.out.println(&quot;YOU GOT IT RIGHT!&quot;);\n\t\t\t\ts++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(&quot;YOU WERE WRONG - THE CORRECT ANSWER WAS &quot; + c);\n\t\t\t\ts--;\n\t\t\t}\n\t\t\tf++;\n\t\t}\n\t\tSystem.out.println(&quot;THANKS FOR PLAYING GREG'S NUMBER GUESSING GAME \\n YOUR TOTAL SCORE WAS &quot; + s);\n\t}\n\n}\ni added some new stuff to the code..."}