
while(!bStop)...{
try...{
wait();
}catch(Exception e)...{
e.printStackTrace();
}
System.out.println(Thread.currentThread().getName());
}
}
public void stopThread()...{
bStop=true;
}
}



