title: using "\t" for table alignment in java
body: <p>my code uses a for loop like so:</p>
  
  <pre><code>for(int i=0; i&lt;100; i++)
  {
    System.out.print(number + "\t");
  }
  </code></pre>
  
  <p>Of course my for loop is more complicated than that but i just typed that in for demonstration purposes. I am using "\t" for alignment in my table but it makes the columns print too far apart. my current output is:</p>
  
  <pre><code>1     2     3     4 
  --    --    --    --        
  1     1     1     4                         
  0     2     2     2                 
  0     0     3     3
  </code></pre>
  
  <p>how can i reduce the space that tab "\t" makes? 
  my other question is how can i split the line at 80 characters so that my output does not exceed the page width? </p>