//n为毫秒数
try { Thread.sleep ( n ) ;
} catch (InterruptedException ie){}

 

try { TimeUnit.SECONDS.sleep(10); ;
} catch (InterruptedException ie){}

 

 

参考链接:http://blog.csdn.net/eric20080321/article/details/4070076

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2021-08-10
  • 2021-12-26
  • 2021-08-31
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案