title: Java: Easier pretty printing?
body: <p>At the end of my computations, I print results:</p>
  
  <pre><code>System.out.println("\nTree\t\tOdds of being by the sought author");
  
  for (ParseTree pt : testTrees) {
   conditionalProbs = reg.classify(pt.features());
  
   System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]);
   System.out.println();
  }
  </code></pre>
  
  <p>This produces, for instance:</p>
  
  <pre><code>Tree  Odds of being by the sought author
  K and Burstner  0.000000
  how is babby formed answer  0.005170
  Mary is in heat  0.999988
  Prelim  1.000000
  </code></pre>
  
  <p>Just putting two <code>\t</code> in there is sort of clumsy - the columns don't really line up. I'd rather have an output like this:</p>
  
  <pre><code>Tree                         Odds of being by the sought author
  K and Burstner               0.000000
  how is babby formed answer   0.005170
  Mary is in heat              0.999988
  Prelim                       1.000000
  </code></pre>
  
  <p>(note: I'm having trouble making the SO text editor line up those columns perfectly, but hopefully you get the idea.)</p>
  
  <p>Is there an easy way to do this, or must I write a method to try to figure it out based on the length of the string in the "Tree" column?</p>