title: How to get the sentences in text file and put in to the array list Java?
body: <p>Assume the text file contains:</p>
  
  <pre><code>He is a boy .
  She is sick .
  Ali is playing .
  We are eating .
  The dog is barking .
  He and his brother are running .
  </code></pre>
  
  <p>How can I put all the sentences into array list in format:</p>
  
  <pre><code>He is
  is a 
  a boy
  boy .
  She is
  is sick
  sick .
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I use array list to avoid keep reading the text file to perform some task is it possible?
  Or I need to use vector to do it? </p>