class pro0
309 extends Thread{
int px,py;
public void run() {
int t;
for (t=1;t<
101;t++){
px=px+1;
py=py+1;
if (px==6)px=1;
if (py==6)py=1;
System.out.println(px);
try {sleep(500);} catch (InterruptedException e) {System.out.println("fail");}
}
}
public static void main(String[] args){
pro0309 th = new pro0309();
th.start();
}
}
最終更新:2010年09月19日 02:37