Using wait and notify? in java 2011-12

Sponsored Links

Code:
try
{
Thread.sleep(5000); // do nothing for 5000 milLiseconds (5 seconds)
}
catch(InterruptedException e)
{
e.printStackTrace();
}