title: Java: how to sleep?
body: <pre><code>   import java.util.Scanner;
     import java.lang.Thread;
  
     class OrigClass {
     public static void main (String[] args){
  
  
     for(int i = 0; i&lt;=10;i++){
        System.out.println(i);
        thread.sleep(1000);
     }
    }
   }
  </code></pre>
  
  <p>As you can see, I want the program to count up to 10. What do I need to type to get it to work?</p>
  
  <p>I probably should have said the error is "thread cannot be resolved" in Eclipse.</p>