title: Cuntdown timer in cycle
body: <p>I'm trying to write code for a countdown timer with several conditions. </p>
  
  <p>For processing I use several nested loops. But all timers works simultaneously. I need to start them sequentially. Advise, what to use.</p>
  
  <pre><code>try {
      for (int z = 1; z &lt;= timerAll; z++) {
          for (int j = 1; j &lt;= countEdu; j++) {
              showTimer(educ * MILLIS_PER_SECOND);
              showTimer(rest * MILLIS_PER_SECOND);
          }
  
          chStatus.setText("BIG REST");
          if(z== timerAll){
              chStatus.setText("DONE");
              //bigRest = 0;
              //timer.cancel();
          }
          showTimer(bigRest * MILLIS_PER_SECOND);
      }
  } catch (NumberFormatException e) {
      // method ignores invalid (non-integer) input and waits
      // for something it can use
  }
  </code></pre>