import java.util.*;

public class Verifier
{
    public static final String EXAMPLE1 = "example1.txt";
    public static final int EXAMPLE1_PEOPLE = 3;
    public static final int EXAMPLE1_ANSWERS = 6;
    public static final int EXAMPLE1_GROUPS = 1;

    public static final String EXAMPLE2 = "example2.txt";
    public static final int EXAMPLE2_PEOPLE = 11;
    public static final int EXAMPLE2_ANSWERS = 11;
    public static final int EXAMPLE2_GROUPS = 5;
    
    public Verifier (boolean debug)
    {
        _debug = debug;
    }

    public final boolean verify ()
    {
        Parser p = new Parser(_debug);
        Vector<Answers> answers = p.work(EXAMPLE1);

        if (answers.size() == EXAMPLE1_GROUPS)
        {
            Answers a = answers.elementAt(0);

            if (a.numberOfPeopleInGroup() == EXAMPLE1_PEOPLE)
            {
                if (a.numberOfTrueAnswers() == EXAMPLE1_ANSWERS)
                {
                    answers = p.work(EXAMPLE2);

                    if (answers.size() == EXAMPLE2_GROUPS)
                    {
                        return true;
                    }
                }
                else
                    System.out.println("Wrong number of true answers in EXAMPLE1: "+a.numberOfTrueAnswers());
            }
            else
                System.out.println("Wrong number of people in group in EXAMPLE1: "+a.numberOfPeopleInGroup());
        }
        else
            System.out.println("Wrong number of groups in EXAMPLE1: "+answers.size());

        return false;
    }

    private boolean _debug;
}
@@ -1049,32 +1049,472 @@
               %7B%0A
+                        Enumeration%3CAnswers%3E iter = answers.elements();%0A                        int count = 0;%0A                        int people = 0;%0A%0A                        while (iter.hasMoreElements())%0A                        %7B%0A                            a = iter.nextElement();%0A%0A                            count += a.numberOfTrueAnswers();%0A                            people += a.numberOfPeopleInGroup();%0A                        %7D%0A%0A
                 

Update Verifier.java