编写一个线程的实例如下:

class MultiThread...{
public static void main(String[] args)...{
MyThread mt=new MyThread();
mt.start();
while(true)...{
System.out.println("main:"+Thread.currentThread().getName());
}
}
}
class MyThread extends Thread...{
public void run()...{
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论

