【分录题】下面的程序定义了一个线程TimeThread,该线程每隔1秒钟输出显示一次当前系统时间,在main方法中使用TimeThread类创建3个新线程,并启动这些线程,请将下面的程序填写完整。 import java.util.*; class TimeThread implements (1) { public void run() { while (true) { Date currentTime = new Date(); try { (2) ; // 休眠1秒钟 } catch (Exception e) {System.out.println(e.toString());} System.out.println(Thread.currentThread().getName()+": "+currentTime); } } } public class Ex2 { public static void main(String[] args){ String[] names={"first","second","third"}; TimeThread myThread = new TimeThread(); for(int i=0;i<3;i++){ thread threadobj="new" thread(mythread,names[i]); (3) ; 启动线程 }>