title: how to print when you have left a recursive call
body: <p>How can I print to the screen after leaving a recursive call. For example when doing the ackermann function bellow. </p>
  
  <pre><code>acker(1,2);
  public int acker(int m, int n){
      System.out.println("Entered acker");
      if(m == 0)
          return n + 1;
      if(n == 0)
          return acker(m-1,1);
      return acker(m-1, acker(m, n - 1));
  }
  </code></pre>
  
  <p>I can print when I enter the acker method but how would I print after the method finishes calling itself. For example the output would be:</p>
  
  <pre><code>Entered acker
  Entered acker 
  Entered acker 
  Entered acker
  //Here it would say leaving because its not making another recursive call
  </code></pre>