title: Using a recursive method to return an inorder string in java?
body: <p>I want to make an in order transversal of a binary tree. I made this method:</p>
  
  <pre><code>public String inorder()
      {
          String inorder = "";
          return recrInorder(this.root, inorder);
      }
  </code></pre>
  
  <p>then i have a helper method:</p>
  
  <pre><code>private String recrInorder(Node curr,String string)
      {
          if(curr == null)
          {
              return "";
          }
          //Go through left
          recrInorder(curr.getLeft(), string);
          string = string + curr.getData() + ", ";
          //Go through right
          recrInorder(curr.getRight(), string);
          return string;
      }
  </code></pre>
  
  <p>This will only print the root, i want the whole list printed.</p>