import java.util.*;

public class Verifier
{
    public static final String EXAMPLE = "example.txt";
    public static final int EXAMPLE_PEOPLE = 11;
    public static final int EXAMPLE_ANSWERS = 6;
    public static final int EXAMPLE_GROUPS = 5;

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

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

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

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

        return false;
    }

    private boolean _debug;
}
@@ -445,25 +445,24 @@
 AMPLE);%0A
-%0A
         
 if (answ
@@ -457,44 +457,149 @@
     
-if (answers.size() == EXAMPLE_GROUPS
+Enumeration%3CAnswers%3E iter = answers.elements();%0A        int count = 0;%0A        int people = 0;%0A        %0A        while (iter.hasMoreElements()
 )%0A  
@@ -634,27 +634,25 @@
 a = 
-answers.e
+iter.nextE
 lement
-At(0
+(
 );%0A%0A
@@ -667,37 +667,196 @@
     
-if (a.numberOfPeopleInGroup()
+count += a.numberOfAnswersEveryoneAnsweredTrue();%0A            people += a.numberOfPeopleInGroup();%0A        %7D%0A%0A        if (answers.size() == EXAMPLE_GROUPS)%0A        %7B%0A            if (people
  == 
@@ -909,47 +909,13 @@
 if (
-a.numberOfAnswersEveryoneAnsweredTrue()
+count
  == 
@@ -1108,47 +1108,13 @@
 : %22+
-a.numberOfAnswersEveryoneAnsweredTrue()
+count
 );%0A 
@@ -1229,33 +1229,14 @@
 : %22+
-a.numberOfPeopleInGroup()
+people
 );%0A 

Update Verifier.java