import java.util.*;

public class Assessment
{
    public static final String INPUT_FILE = "data.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);
        }

        Vector<Food> foods = Util.loadRules(INPUT_FILE, debug);

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

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

        System.out.println("Cound of ingredients which cannot contain any of the allergens: "+occurrences);
    }
}
import java.util.*;

public class Assessment
{
    public static final String INPUT_FILE = "data.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);
        }

        Vector<Food> foods = Util.loadRules(INPUT_FILE, debug);

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

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

        System.out.println("Count of ingredients which cannot contain any of the allergens: "+occurrences);
    }
}
Update Assessment.java