title: Timer with fixed delays between Task
body: <p>I want to have a timer task that runs two tasks with fixed delays between each task.</p>
  
  <p>For example:</p>
  
  <p>A------B-----A------B<br>
  0------10----20----30</p>
  
  <p>I tried using this code:</p>
  
  <pre><code>timer.scheduleAtFixedRate(taskA, 0, 10000);
  timer.scheduleAtFixedRate(taskB, 10000, 10000);
  </code></pre>
  
  <p>but that gives me:</p>
  
  <p>A-----A,B-----A,B<br>
  0-----10------20</p>
  
  <p>How do I do this using Timer and TimerTask?   </p>