class pro0502 extends Thread{
pro0502(){
System.out.println("in");
}
public void run() {
int n;
for (n=1;n<11;n++){
System.out.println("ex");
try {sleep(500);} catch (InterruptedException e) {System.out.println("fail");}
}
}
public static void main(String[] args){
pro0502 th = new pro0502();
th.start();
}
}
最終更新:2010年09月18日 00:32