title: Java reading a file into an ArrayList?
body: <p>How do you read the contents of a file into an <code>ArrayList&lt;String&gt;</code> in Java? <br></p>
  <p><strong>Here are the file contents:</strong></p>
  <pre><code>cat
  house
  dog
  .
  .
  .
  </code></pre>