import java.util.*;

public class Verifier
{
    public static final String EXAMPLE_FILE = "example.txt";

    public static final int INGREDIENT_COUNT = 5;

    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public boolean verify ()
    {
        Vector<Food> foods = Util.loadRules(EXAMPLE_FILE, _debug);

        if (_debug)
            System.out.println("Got back:\n"+foods);

        Babel fish = new Babel(_debug);
        int occurrences = fish.translate(foods);

        if (occurrences == INGREDIENT_COUNT)
            return true;

        System.out.println("Wrong number of occurrences: "+occurrences);
        
        return false;
    }

    private boolean _debug;
}
@@ -99,17 +99,16 @@
 e.txt%22;%0A
-%0A
     publ
@@ -127,32 +127,53 @@
 nal 
-int INGREDIENT_COUNT = 5
+String EXAMPLE_RESULT = %22mxmxvkd,sqjhc,fvjkl%22
 ;%0A%0A 
@@ -473,23 +473,21 @@
     
-int occurrences
+String result
  = f
@@ -525,39 +525,37 @@
 if (
-occurrences == INGREDIENT_COUNT
+EXAMPLE_RESULT.equals(result)
 )%0A  
@@ -616,44 +616,24 @@
 ong 
-number of occurrences: %22+occurrences
+result: %22+result
 );%0A 

Update Verifier.java