import java.util.*;

public class Verifier
{
    public static final int EXAMPLE_INT1 = 1721;
    public static final int EXAMPLE_INT2 = 299;

    public static final int EXAMPLE_TOTAL = 2020;

    public static final Integer[] EXAMPLE_FIGURES = { 1721, 979, 366, 299, 675, 1456 };

    public Verifier (int total, boolean debug)
    {
        _figures = new Vector<Integer>();
        
        for (int i = 0; i < EXAMPLE_FIGURES.length; i++)
            _figures.add(EXAMPLE_FIGURES[i]);

        _totaliser = new Total(_figures, debug);
        _debug = debug;
    }

    public boolean verify ()
    {
        Integer[] results = _totaliser.sum(EXAMPLE_TOTAL);

        if (results != null)
        {
            if (results.length == 2)
            {
                if (((results[0] == EXAMPLE_INT1) && (results[1] == EXAMPLE_INT2)) ||
                    ((results[0] == EXAMPLE_INT2) && (results[1] == EXAMPLE_INT1)))
                {
                    return true;
                }
            }
        }

        return false;
    }

    private Vector<Integer> _figures;
    private Total _totaliser;
    private boolean _debug;
}
@@ -81,20 +81,67 @@
 _INT1 = 
-1721
+979;%0A    public static final int EXAMPLE_INT2 = 366
 ;%0A    pu
@@ -177,15 +177,15 @@
 _INT
-2 = 299
+3 = 675
 ;%0A%0A 
@@ -348,19 +348,8 @@
 er (
-int total, 
 bool

Update Verifier.java