title: Read two lines of CSV at a time (Java)
body: <p>Is there a way to read two lines of a csv file at a time in Java? </p>
  
  <p>I can read one at a time using Scanner (it has to be done like this):</p>
  
  <pre><code>String line = input.nextLine();
  String[] nline = line.split ("[,]");
  ......
  </code></pre>
  
  <p>Here is some sample data and a short explanation. I need these read two at a time so I can can go about my other processing.</p>
  
  <p>the first line that starts with "Create" creates a person
  the second line "action" is the action of the created person</p>
  
  <pre><code>create,Mr. Jones,blah,blah 
  action,1,3
  create,Mrs.Smith,blah,blah
  action,4,10
  ....
  </code></pre>
  
  <p>Thanks in advance.</p>