title: string tokenizer in Java
body: <p>I have a text file which contains data seperated by '|'. I need to get each field(seperated by '|') and process it. The text file can be shown as below :</p>
  
  <p><strong>ABC|DEF||FGHT</strong></p>
  
  <p>I am using string tokenizer(JDK 1.4) for getting each field value. Now the problem is, I should get an empty string after DEF.However, I am not getting the empty space between DEF &amp; FGHT.</p>
  
  <p>My result should be - <strong>ABC,DEF,"",FGHT</strong> but I am getting <strong>ABC,DEF,FGHT</strong></p>