title: Using Lists to store data from a BufferedReader file
body: <p>I've been trying to use lists to store data from a .csv file, but since I'm new to using lists, I can't seem to be able to get it to work.  I've searched many tutorials but none of them are working for me. I must be missing something.  Here's what I have so far:</p>
  
  <pre><code>        int row = 0;
          int col = 0;
  
          String fileInput = JOptionPane.showInputDialog(null, 
                  "Please enter the path of the CSV file to read:");
  
          File file = new File(fileInput);
  
          BufferedReader bufRdr;
          bufRdr = new BufferedReader(new FileReader(file));
          String line = null;
  
          ArrayList&lt;String[]&gt; arrayOfNumbers = new ArrayList&lt;String[]&gt;();
  
          //read each line of text file
          while((line = bufRdr.readLine()) != null) {
              StringTokenizer st = new StringTokenizer(line,",");
              col=0;
  
              while (st.hasMoreTokens()) {
                  //get next token and store it in the array
                  // UNSURE WHAT TO PUT HERE
              }
              row++;
          }
  </code></pre>
  
  <p>Then I want to store the data in that list into a multi-dimensional array called <code>String[][] numbers</code>.  Any ideas of what I should do?</p>