[填空题] 下列程序创建了一个线程并运行,请填空,使程序完整。 public class ThreadTest { public static void main(String args[]){ Hello h=new Hello(); 【12】 ; t.start(); } } class Hello implements Runnable { int i; public void run() {while(tree){ System.out.println("Hello" +i++); if(i==5) break; } } }
参考答案:
Thread t=new Thread(h)问题解析:
解析无

![[填空题] 下列程序创建了一个线程并运行,请填空,使程序完整。 public class ThreadTest { public static void main(String args[]) [填空题] 下列程序创建了一个线程并运行,请填空,使程序完整。 public class ThreadTest { public static void main(String args[])](http://www.mshxw.com/aiimages/31/255469.png)
