Java线程理解-线程的休眠
public static void sleep(long millis) throws InterruptedException; // 休眠xx毫秒;1.使用使需要try catch 异常处理;
package com.mldn;
class Thr implements Runnable
{
public void run()
{
for (int i = 0; i < 10; i++)
{
try
...