title: Copy CSVReader output to array (single index to new array)
body: <p>I have a CSV file which i am reading with the CSVReader library.</p>
  
  <p>I want to iterate through the file row by row and save the values from a particular column to a new Array.</p>
  
  <p>The following code gives me a list of data from the 2nd column.</p>
  
  <p>How do i take this data and save it to an array?
  I am specifying the column delimiter as a comma and skipping the first two lines of the file</p>
  
  <pre><code>public class ReadFile {
  
  
          // Location of file to read
  
      private static final String FILE="myfile.csv"; 
  
      public static void main(String[] args) throws IOException {
  
          CSVReader reader = new CSVReader(new FileReader(FILE), ',','\'', 2);
  
              String [] nextLine;
          while ((nextLine = reader.readNext()) != null) {
  
                     System.out.println(nextLine[1]);
          }
             }
      }
  </code></pre>
  
  <p>Current output from nextLine[1]</p>
  
  <pre><code>1720178147618
  1720178147617
  1720178147616
  1720178147615
  1720178147614
  1720178147613
  1720178147612
  </code></pre>
  
  <p>Desired output</p>
  
  <pre><code>String[] ID = 1720178147618, 1720178147617, 1720178147616, 1720178147615, 1720178147614, 1720178147613, 1720178147612
  </code></pre>
  
  <p>I think what im after is instructions on how to convert data stored in single index, to a new Array of separate indexes.</p>