title: How to populate an ArrayList from words in a text file?
body: <p>I have a text file containing words separated by newline , like the following format:     </p>
  
  <pre><code>&gt;hello  
  &gt;world  
  &gt;example 
  </code></pre>
  
  <p>How do i create an ArrayList and store each word as an element?</p>