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>();
        _totaliser = new Total(_figures);
        _debug = debug;

        _figures.copyInto(EXAMPLE_FIGURES);
    }

    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;
}
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>();
        _totaliser = new Total(_figures, debug);
        _debug = debug;

        _figures.copyInto(EXAMPLE_FIGURES);
    }

    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;
}
Update Verifier.java