Simple Java Scanner issue
<p>I haven't been doing Java long. In this script where it says Thread.sleep(10000); you can still type (I use eclipse) I really don't know why it enables you to type in the output when I have no uno.nextLine(); before or after the 10 second waiting. Please help! Thanks</p>

<pre><code>import java.util.Scanner;
class Tutoiral{
        public static void main (String args[])throws InterruptedException {
            Scanner uno = new Scanner(System.in);
            Scanner uno1 = new Scanner(System.in);
            System.out.println("What's your name?");
            String name = uno.nextLine();
            System.out.println("Hi, " + name + ". Feel free to type whatever you want :) BUT DON'T SPAM!!!!!");

            String typed = (": ") + uno1.nextLine();
            System.out.println(name + typed + " (5 types remaining)");
            uno.nextLine();
            System.out.println(name + typed + " (4 types remaining)");
            uno.nextLine();
            System.out.println(name + typed + " (3 types remaining)");
            uno.nextLine();
            System.out.println(name + typed + " (2 types remaining)");
            uno.nextLine();
            System.out.println(name + typed + " (1 type remaining)");
            uno.nextLine();
            System.out.println(name + typed + " (If you type one more time, then I'll... I'll block you! Ha!)");
            uno.nextLine();
            System.out.println(name + typed + " (tut tut tut. You have been blocked for a while for spam. Don't type EVER again ok?)");
            Thread.sleep(10000);
            System.out.println("Ok, you can type again. But I wouldn't If I were you.");
</code></pre>
