import java.util.*;
import java.io.*;

public class Scanner
{
    public static final String DATA_FILE = "input.txt";

    public static void main (String[] args)
    {
        boolean verify = false;
        boolean debug = false;

        for (int i = 0; i < args.length; i++)
        {
            if ("-help".equals(args[i]))
            {
                System.out.println("Usage: [-debug] [-verify] [-help]");
                System.exit(0);
            }

            if ("-debug".equals(args[i]))
                debug = true;

            if ("-verify".equals(args[i]))
                verify = true;
        }

        if (verify)
        {
            Verifier v = new Verifier(debug);

            if (v.verify())
                System.out.println("Verified ok.");
            else
                System.out.println("Verify failed!");

            System.exit(0);
        }

        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        Vector<Barcode> values = new Vector<Barcode>();
        int id = 0;

        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);

                if (b.getSeat().id() > id)
                    id = b.getSeat().id();

                values.add(b);
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        System.out.println("Highest seat ID on a boarding pass: "+id);
    }
}
@@ -1003,74 +1003,41 @@
     
-Vector%3CBarcode%3E values = new Vector%3CBarcode%3E();%0A        int id = 0
+Plane thePlane = new Plane(debug)
 ;%0A%0A 
@@ -1384,107 +1384,36 @@
     
-if (b.getSeat().id() %3E id)%0A                    id = b.getSeat().id();%0A%0A                values.add(b
+thePlane.addSeat(b.getSeat()
 );%0A 
@@ -1673,32 +1673,32 @@
 %7B%0A            %7D%0A
+
         %7D%0A%0A     
@@ -1694,80 +1694,8 @@
    %7D
-%0A%0A        System.out.println(%22Highest seat ID on a boarding pass: %22+id);
 %0A   

Update Scanner.java