倒计时三分钟
@Test
public void test()
{
while (time > 0) {
time--;
try {
Thread.sleep(1000);
/* int hh = time / 60 / 60 % 60;*/
int mm = time / 60 % 60;
int ss = time % 60;
System.out.println("还剩" + mm + "分钟" + ss + "秒");
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}