11 Replies Latest reply on Nov 7, 2006 8:29 PM by 807607

    sending threads to sleep

      writing w = new writing("     ");
           Thread t = new Thread(w);
      this code here is creating an instance of writing which processes the threads then i go onto create the thread start it and set its name. when i try to send it to sleep though it wont compile.
      static void      sleep(long millis) is the type of the method i am calling

      it says it has an error unhandled exception type InteruptedException

      does anyone know how to get it to work?