AmyTaskOfsuiDynasty和AmyTaskOfRevolut 只创建一个就可以了吧?
AmyRunnable AmyTask = new AmyRunnable();
Thread AmyOfSuiDynasty = new Thread(AmyTask,"隋军");
Thread AmyOfRevolution = new Thread(AmyTask,"义军");
我这样写是不是也没问题的?
AmyRunnable AmyTask = new AmyRunnable();
Thread AmyOfSuiDynasty = new Thread(AmyTask,"隋军");
Thread AmyOfRevolution = new Thread(AmyTask,"义军");
我这样写是不是也没问题的?
2014-12-18
举报