title: How do you convert a CSV file into a 2D array in Java or C++
body: <p>My question title didn't fully outline my question. I have a text file that has many lines of data with each line in the following format:</p>
  
  <pre>
  a, date, b, c, d, Username, e, Description
  </pre>
  
  <p>a,b,c,d, and e will not need to be used for anything. </p>
  
  <p>Notes: </p>
  
  <ul>
  <li>the dates are in this format -> 2013-04-07T22:23:58Z (the "T22:23:58Z" will not be needed)</li>
  <li>Descriptions are either login, logout, or extend</li>
  <li>same usernames will show up multiple times throughout the file</li>
  </ul>
  
  <p>I need to write a code that will take the data from the text file, and output which users extended that day and how many times.</p>
  
  <p>example of text file:</p>
  
  <pre>
  a,2013-04-07T22:23:58Z,b,c,d,john,extend
  a,2013-04-07T22:23:51Z,b,c,d,john,login
  a,2013-07-07T22:23:51Z,b,c,d,john,extend
  a,2013-04-07T22:23:58Z,b,c,d,mark,extend
  a,2013-03-07T22:23:51Z,b,c,d,frank,login
  a,2013-07-11T22:23:51Z,b,c,d,john,extend
  </pre>
  
  <p>Example output:</p>
  
  <pre>
  2013-04-07:
  john -> 1 extend
  mark -> 1 extend
  
  2013-07-07:
  john -> 1 extend
  
  2013-07-11:
  john -> 1 extend
  </pre>
  
  <p>Can someone explain to me, or better yet show me how I can do this?</p>