import java.util.*;

public class Verifier
{
    public static final String EXAMPLE1_FILE = "example1.txt";
    public static final long TOTAL_FUEL_1 = 82892753L;
    public static final String EXAMPLE2_FILE = "example2.txt";
    public static final long TOTAL_FUEL_2 = 5586022L;
    public static final String EXAMPLE3_FILE = "example3.txt";
    public static final long TOTAL_FUEL_3 = 460664L;

    public Verifier (boolean debug)
    {
        _debug = debug;
        _theParser = new Parser(debug);
    }

    public final boolean verify ()
    {
        Vector<Reaction> reactions = _theParser.loadData(EXAMPLE2_FILE);
        NanoRefinery factory = new NanoRefinery(reactions, _debug);
        boolean verified = false;
        long totalOre = 1000000000000L;
        long fuelCreated = factory.createMaxFuelFromOre(totalOre);

        if (fuelCreated == TOTAL_FUEL_2)
        {
            return true;
            /*
            reactions = _theParser.loadData(EXAMPLE2_FILE);
            factory = new NanoRefinery(reactions, _debug);

            fuelCreated = factory.createMaxFuelFromOre(totalOre);

            if (fuelCreated == TOTAL_FUEL_2)
                verified = true;
            else
                System.out.println("Failed on "+EXAMPLE2_FILE+" with "+fuelCreated);*/
        }
        else
            System.out.println("Failed on "+EXAMPLE1_FILE+" with "+fuelCreated);

        return verified;
    }

    private boolean _debug;
    private Parser _theParser;
}
@@ -600,33 +600,33 @@
 loadData(EXAMPLE
-2
+3
 _FILE);%0A        
@@ -857,33 +857,33 @@
 d == TOTAL_FUEL_
-2
+3
 )%0A        %7B%0A    

Update Verifier.java