<span style="font-size:32px;">/**
* @author cjm727649353
*/
public class Client2 {
public static void main(String[] args) {
MyRun target1 = new MyRun(1);
MyRun target2 = new MyRun(2);
Thread t1 = new Thread(target1);
t1.start();
Thread t2 = new Thread(target2);
t2.start();
}
}</span>
<span style="font-size:32px;">class MyRun implements Runnable{
private int first;
public MyRun(int first) {
this.first = first;
}
public void run() {
for(int i=first;i<=100;i+=2){
System.out.print(i+" ");
}
System.out.println();
}
}</span>