title: How to check some condition every 1 sec in java until true
body: <p>I need to check certain condition in java every 1 second until it is true.Once it is true, need to exit from it and proceed further.</p>
  
  <p>Say a->b->c
  check b every 1 sec until it is true, if it is true go to c.</p>
  
  <p>Could someone suggest what is the best possible way to achieve this in Java?</p>