import java.util.*;

public class Total
{
    public Total (Vector<Integer> list)
    {
        _numbers = list;
    }

    public Integer[] sum (int total)
    {
        Integer[] toReturn = new Integer[2];
        boolean found = false;

        for (int i = 0; (i < _numbers.size()) && !found; i++)
        {
            toReturn[0] = _numbers.elementAt(i);

            for (int j = i; (j < _numbers.size()) && !found; j++)
            {
                if (toReturn[0] + _numbers.elementAt(j) == total)
                {
                    toReturn[1] = _numbers.elementAt(j);

                    found = true;
                }
            }
        }

        if (found)
            return toReturn;
        else
            return null;
    }

    private Vector<Integer> _numbers;
}
@@ -73,16 +73,31 @@
 er%3E list
+, boolean debug
 )%0A    %7B%0A
@@ -121,16 +121,40 @@
 = list;%0A
+        _debug = debug;%0A
     %7D%0A%0A 
@@ -824,9 +824,37 @@
 umbers;%0A
+    private boolean _debug;%0A
 %7D

Update Total.java