parent
f0f5685f7a
commit
bfa6c34d27
@ -1,25 +0,0 @@
|
||||
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 **********/
|
||||
|
Loading…
Reference in new issue