title: Why the last line of my code executes more then one time?
body: <p>I wrote one program that output like "01234567891010987654321". But the problem is I didn't get why it shows like that. Can you please explain about last line of output.</p>
  
  <p>my code is:</p>
  
  <pre><code>class Demo{
  
    public static void main(String[] args) {
  
      int i = 0;
      show(i);
  
    }
  
    public static void  show(int i) {
      if(i&lt;=9)
      {
        System.out.print(i++);
        show(i);
      }
      System.out.print(i--);
    }
  
  }
  </code></pre>