title: Java thread wait/sleep
body: <p>I have the below condition, Can someone please help:</p>
  
  <pre><code>if(checkcondition){ --------(A)
  ...
  some code
  ...
  }
  else{
  sleep for 20 sec
  go back to checkconfdition loop @ (A)
  }
  </code></pre>
  
  <p>Any help is appriciated in advance.</p>
  
  <p>Thanks 
  Vaibhav</p>