class MyThead implements Runnable
{
public void run()
{
System.out.println("我休息了!");
try
{
Thread.sleep(1000);
}
catch (InterruptedException e)
{
}
System.out.println("一秒后在叫我吧!");
}
}
public class TheadMain
{
public static void main(String[] args)
{
MyThead myThead = new MyThead();
Thread thread = new Thread(myThead);
thread.start();
}
}class MyThead implements Runnable
{
public voi