You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
475 B
26 lines
475 B
package step1;
|
|
|
|
//请在此添加实现代码
|
|
/********** Begin **********/
|
|
public class ThreadClassOne extends Thread {
|
|
public void run(){
|
|
for(int i=1;i<10;i+=2){
|
|
System.out.print(i+" ");
|
|
}
|
|
}
|
|
}
|
|
class ThreadClassTwo implements Runnable{
|
|
public void run(){
|
|
for(int i=0;i<=10;i+=2){
|
|
System.out.print(i+" ");
|
|
}
|
|
}
|
|
public void start(){
|
|
|
|
}
|
|
}
|
|
|
|
|
|
/********** End **********/
|
|
|