public class HappenedNewYear {
public static void main(String[] args) {
System.out.println("新春倒计时");
for( int i=10;i>=0;i--) {
System.out.println(i);
try {
Thread.sleep(988);
} catch (Exception e) {
// TODO: handle exception
}
if (i==0) {
System.out.println("过年好!");
}
}
}
}