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

public class Verifier
{
    public static final String EXAMPLE1_FILE = "example1.txt";
    public static final int TOTAL_ORE_1 = 31;
    public static final String EXAMPLE2_FILE = "example2.txt";
    public static final int TOTAL_ORE_2 = 165;
    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);
        Enumeration<Reaction> iter = reactions.elements();

        while (iter.hasMoreElements())
            System.out.println(iter.nextElement());

        return false;
    }

    private boolean _debug;
    private Parser _theParser;
}
@@ -843,16 +843,53 @@
 _FILE);%0A
+%0A        //if (_debug)%0A        %7B%0A    
         
@@ -948,16 +948,20 @@
         
+ 
+   
 while (i
@@ -983,16 +983,20 @@
 ents())%0A
+    
         
@@ -1038,16 +1038,26 @@
 ment());
+%0A        %7D
 %0A%0A      
@@ -1075,24 +1075,365 @@
 lse;%0A    %7D%0A%0A
+    private Reaction findReaction (String name, Vector%3CReaction%3E reactions)%0A    %7B%0A        Enumeration%3CReaction%3E iter = reactions.elements();%0A%0A        while (iter.hasMoreElements())%0A        %7B%0A            Reaction r = iter.nextElement();%0A%0A            if (r.name().equals(name))%0A                return r;%0A        %7D%0A%0A        return null;%0A    %7D%0A%0A
     private 

Update Verifier.java