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;

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

            while ((line = reader.readLine()) != null)
            {
                Barcode b = new Barcode(line, debug);

                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;
}
@@ -254,32 +254,76 @@
 r reader = null;
+%0A        Answers theAnswers = new Answers();
 %0A%0A        try%0A  
@@ -389,17 +389,16 @@
 der(
-DATA_FILE
+fileName
 ));%0A
@@ -503,63 +503,8 @@
   %7B%0A
-                Barcode b = new Barcode(line, debug);%0A%0A
     

Update Parser.java