java定時小程序

public class DingShi {
public static void main(String[] args) {
        for(int i=5 ;i>0;i--){
            System.out.println("                                         "+i+" ");
            System.out.println(" ");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        System.out.println("時間到!!!!!!!!");
    }
    }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章