public class ShuttleLaunch extends Thread
{
    String shuttle;
    public ShuttleLaunch (String str)
    {
	shuttle = str;
	System.out.println (shuttle + " is beginning lift off");
    }


    public void run ()
    {
	for (int i = 10 ; i > 0 ; i--)
	{
	    System.out.println (shuttle + ": " + i);
	    try
	    {
		sleep ((long) (Math.random () * 1000));
	    }
	    catch (InterruptedException e)
	    {
	    }
	}
	System.out.println (shuttle + " blasts off");
    }
}

