title: Incorrect use of "do..while" method
body: <p>I'm trying to make a repeating loop to display increasing numbers in a single textview.</p>
  
  <p>The general idea is this</p>
  
  <pre><code>....
  int rep = 1;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.Layout);
  
     do { meth(); } while (rep &lt; 11);
  
     }
  
  
        private void meth() {
        final TextView textv = (TextView) findViewById( R.id.tex );
  
        String srep = Integer.toString(rep);
        textv.setText(srep);
  
        if(rep &lt;11) { rep = rep +1; }
                            }
       ....
  </code></pre>
  
  <p>The idea is to display the numbers 1 to 10 in the textview textv ONE BY ONE on screen. But when I ran it, it just shows 10. I'm tried to put in a CountDownTimer inside meth() and also inside the do {} loop but it just crashes the program.</p>
  
  <p>Would appreciate if anyone can point me the right way of doing this.</p>