Read a file and convert it to an array (Java)
<p>So I have a collection of phrases that are separated by newlines and I would like to populate an array with these phrases. This is what I have so far:</p>

<pre><code>   Scanner s;
   s = new Scanner(new BufferedReader(new FileReader("Phrases.txt")));
   for(i = 0; i &lt; array.length;i++)
   {
   s.nextLine() = array[i];
   }
</code></pre>

<p>Is there a fast and simple way to just populate an array with phrases separated by newlines?</p>
