title: How to write an ArrayList of Strings into a text file?
body: <p>I want to write an <code>ArrayList&lt;String&gt;</code> into a text file. </p>
  
  <p>The <code>ArrayList</code> is created with the code:</p>
  
  <pre><code>ArrayList arr = new ArrayList();
  
  StringTokenizer st = new StringTokenizer(
      line, ":Mode set - Out of Service In Service");
  
  while(st.hasMoreTokens()){
      arr.add(st.nextToken());    
  }
  </code></pre>