import java.util.*;

public class Verifier
{
    public static final String EXAMPLE3_FILE = "example3.txt";
    public static final int TOTAL_ORE_3 = 13312;
    public static final String EXAMPLE4_FILE = "example4.txt";
    public static final int TOTAL_ORE_4 = 180697;
    public static final String EXAMPLE5_FILE = "example5.txt";
    public static final int TOTAL_ORE_5 = 2210736;

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

    public final boolean verify ()
    {
        Vector<Reaction> reactions = _theParser.loadData(EXAMPLE1_FILE);
        NanoRefinery factory = new NanoRefinery(reactions, _debug);
        int oreNeeded = factory.oreNeeded();
        boolean verified = false;

        if (oreNeeded == TOTAL_ORE_1)
        {
            if (_debug)
                System.out.println("Verified "+EXAMPLE1_FILE);

            reactions = _theParser.loadData(EXAMPLE2_FILE);
            factory = new NanoRefinery(reactions, _debug);
            oreNeeded = factory.oreNeeded();

            if (oreNeeded == TOTAL_ORE_2)
            {
                if (_debug)
                    System.out.println("Verified "+EXAMPLE2_FILE);

                reactions = _theParser.loadData(EXAMPLE3_FILE);
                factory = new NanoRefinery(reactions, _debug);
                oreNeeded = factory.oreNeeded();

                if (oreNeeded == TOTAL_ORE_3)
                {
                    if (_debug)
                        System.out.println("Verified "+EXAMPLE3_FILE);

                    reactions = _theParser.loadData(EXAMPLE4_FILE);
                    factory = new NanoRefinery(reactions, _debug);
                    oreNeeded = factory.oreNeeded();

                    if (oreNeeded == TOTAL_ORE_4)
                    {
                        if (_debug)
                            System.out.println("Verified "+EXAMPLE4_FILE);

                        reactions = _theParser.loadData(EXAMPLE5_FILE);
                        factory = new NanoRefinery(reactions, _debug);
                        oreNeeded = factory.oreNeeded();

                        if (oreNeeded == TOTAL_ORE_5)
                        {
                            if (_debug)
                                System.out.println("Verified "+EXAMPLE5_FILE);

                            verified = true;
                        }
                    }
                }
                else
                    System.out.println("Failed on "+EXAMPLE3_FILE);
            }
            else
                System.out.println("Failed on "+EXAMPLE2_FILE);
        }
        else
            System.out.println("Failed on "+EXAMPLE1_FILE);

        return verified;
    }

    private boolean _debug;
    private Parser _theParser;
}
@@ -72,25 +72,25 @@
 ring EXAMPLE
-3
+1
 _FILE = %22exa
@@ -93,17 +93,17 @@
 %22example
-3
+1
 .txt%22;%0A 
@@ -139,17 +139,17 @@
 TAL_ORE_
-3
+1
  = 13312
@@ -150,16 +150,71 @@
  13312;%0A
+    public static final long TOTAL_FUEL_1 = 82892753L;%0A
     publ
@@ -239,25 +239,25 @@
 ring EXAMPLE
-4
+2
 _FILE = %22exa
@@ -260,17 +260,17 @@
 %22example
-4
+2
 .txt%22;%0A 
@@ -306,17 +306,17 @@
 TAL_ORE_
-4
+2
  = 18069
@@ -318,16 +318,70 @@
 180697;%0A
+    public static final long TOTAL_FUEL_2 = 5586022L;%0A
     publ
@@ -406,25 +406,25 @@
 ring EXAMPLE
-5
+3
 _FILE = %22exa
@@ -427,17 +427,17 @@
 %22example
-5
+3
 .txt%22;%0A 
@@ -473,17 +473,17 @@
 TAL_ORE_
-5
+3
  = 22107
@@ -485,16 +485,69 @@
 2210736;
+%0A    public static final long TOTAL_FUEL_3 = 460664L;
 %0A%0A    pu
@@ -1737,854 +1737,24 @@
     
-reactions = _theParser.loadData(EXAMPLE4_FILE);%0A                    factory = new NanoRefinery(reactions, _debug);%0A                    oreNeeded = factory.oreNeeded();%0A%0A                    if (oreNeeded == TOTAL_ORE_4)%0A                    %7B%0A                        if (_debug)%0A                            System.out.println(%22Verified %22+EXAMPLE4_FILE);%0A%0A                        reactions = _theParser.loadData(EXAMPLE5_FILE);%0A                        factory = new NanoRefinery(reactions, _debug);%0A                        oreNeeded = factory.oreNeeded();%0A%0A                        if (oreNeeded == TOTAL_ORE_5)%0A                        %7B%0A                            if (_debug)%0A                                System.out.println(%22Verified %22+EXAMPLE5_FILE);%0A%0A                            verified = true;%0A                        %7D%0A                    %7D
+verified = true;
 %0A   

Update Verifier.java