title: Transferring each elemnt in a text file into an array
body: <p>I have made this method to take in a file.txt and transfer its elements into an array list.
  My problem is, I dont want to transfer a whole line into one string. I want to take each element on the line as string. </p>
  
  <pre><code>   public ArrayList&lt;String&gt; readData() throws IOException  {
       FileReader pp=new FileReader(filename);
       BufferedReader nn=new BufferedReader(pp);
       ArrayList&lt;String&gt; data=new ArrayList&lt;String&gt;();
       String line;
  
       while((line=nn.readLine()) != null){
          data.add(line);
        }
       xoxo.close();
       return data;
  
      }
  </code></pre>
  
  <p>is it possible ?</p>