创建线程对象,要传递代码与数据,而传递代码与数据有两种方法,一是通过继承Thread类,二是向Thread类传递一个Runnable对象。请在下面程序的每条横线处填写一个语句,使程序的功能完整。 注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。 public class TestThread{ public static void main(String args[ ]) {MyThread t=new MyThread(); _______________________ } } class MyThread_____________Thread{ _____________________ {for(int i=0;i<10;i++){ System.out.println(" " +i);} } }