title: How can I format a two row string so that items of the bottom row line up with items of the top row in java
body: <p>So I have something set up like this: </p>
  
  <pre><code>public static void main(String[] args) {
      String fun = ("3000.05 500 6000.987 70 8000.00");
      String lame = ("3 5 6 7 8");
      String total = (fun + "\n" + lame);
      System.out.println(total);
  }
  </code></pre>
  
  <p>How can I format the total string so that when it prints it prints like this:</p>
  
  <pre>
  3000.05 500 6000.987 70 8000.00  
        3   5        6  7       8
  </pre>
  
  <p>I've been looking forever and can't seem to find what i'm looking for.  I'm just trying to right align each part of the bottom string to the farthest part of the top string.</p>