[填空题] 下面程序创建了一个线程并运行,请填空,使程序完整。 public class ThreadTest { public static void main (String[] args)
13 查阅
[填空题] 下面程序创建了一个线程并运行,请填空,使程序完整。 public class ThreadTest { public static void main (String[] args) { Hello h=Hew Hello (); 【8】 t.start (); } } class Hello implements Runnable { int i; public void run () { while(true) { System.out.println("Hello" +i++); if(i==5) break; } } }
参考答案: