title: How to align columns of a text file in java?
body: <p>I have a text file with 8 columns. These columns have to be left aligned. I have tried it using the Formatter.format(). But it did not work. The file is..</p>
  
  <pre><code>test.txt        0      0        ছোট       JJ      B-JJP      o        -
  
  test.txt        0      1        ছেলের      NN      B-NP       o        -
  
  test.txt        0      2        জন্মতিথি     NN      B-NP       o       -
  </code></pre>
  
  <p><br/>and The code which one I tried is..<br/></p>
  
  <pre><code>/****s1,s2.. contains the token(string) of each line of the file***/
  fm.format("%-25s  %-3s  %3s  %-30s  %-5s  %-8s %-20s  %-15s",
      s1,s2,s3,s4,s5,s6,s7,s8);
  
  str=fm.toString();
  line.set(i, str);
  </code></pre>