class pro0308 extends Thread{
pro0308(){
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){
pro0308 th = new pro0308();
th.start();
}
}
最終更新:2010年09月19日 02:22