import java.util.*;

public class Total
{
    public Total (Vector<Integer> list, boolean debug)
    {
        _numbers = list;
        _debug = debug;
    }

    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;
    private boolean _debug;
}
@@ -187,32 +187,84 @@
 nt total)%0A    %7B%0A
+        System.out.println(%22Checking for %22+total);%0A%0A
         Integer%5B
@@ -324,16 +324,90 @@
 false;%0A%0A
+        System.out.println(%22Size of numbers: %22+_numbers.size());%0A        %0A
         
@@ -516,24 +516,87 @@
 mentAt(i);%0A%0A
+            System.out.println(%22First number: %22+toReturn%5B0%5D);%0A%0A
             
@@ -655,32 +655,124 @@
 )%0A            %7B%0A
+                System.out.println(%22Checking %22+toReturn%5B0%5D+%22 and %22+_numbers.elementAt(j));%0A%0A
                 

Update Total.java