import java.io.*;

public class Parser
{
    public Parser (boolean debug)
    {
        _debug = debug;
    }

    public Questions work (String fileName)
    {
        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        Answers theAnswers = new Answers();

        try
        {
            reader = new BufferedReader(new FileReader(fileName));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                if (debug)
                    System.out.println("Loaded: "+b);

                thePlane.addSeat(b.getSeat());
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }
    }
    
    private boolean _debug;
}
@@ -10,16 +10,36 @@
 va.io.*;
+%0Aimport java.util.*;
 %0A%0Apublic
@@ -136,16 +136,23 @@
  public 
+Vector%3C
 Question
@@ -152,16 +152,17 @@
 uestions
+%3E
  work (S
@@ -303,19 +303,27 @@
     
+Vector%3C
 Answers
- the
+%3E all
 Answ
@@ -332,23 +332,31 @@
 s = new 
+Vector%3C
 Answers
+%3E
 ();%0A%0A   
@@ -472,16 +472,63 @@
  = null;
+%0A            Answers theAnswer = new Answers();
 %0A%0A      
@@ -610,16 +610,17 @@
     if (
+_
 debug)%0A 
@@ -693,39 +693,440 @@
     
-thePlane.addSeat(b.getSea
+if (line.length() == 0)%0A                %7B%0A                    allAnswers.add(theAnswer);%0A                    theAnswer = new Answers();%0A                %7D%0A                else%0A                %7B%0A                    theAnswer.addPersonToGroup();%0A%0A                    for (int i = 0; i %3C line.length(); i++)%0A                    %7B%0A                        theAnswer.answerQuestion(line.charA
 t(
+i
 ));%0A
+                    %7D%0A                %7D%0A
     
@@ -1383,32 +1383,32 @@
 %7B%0A            %7D%0A
-
         %7D%0A    %7D%0A
@@ -1396,24 +1396,52 @@
  %7D%0A        %7D
+%0A%0A        return allAnswers;
 %0A    %7D%0A    %0A

Update Parser.java