老規矩上代碼
package Thread_Demo1;
public class Thread_Demo1 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int i=10;i>0;i--){
System.out.println(i + "");
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}//停一秒
}
}
}