@@ -0,0 +1,1083 @@
+import java.util.Hashtable;%0A%0Apublic class Solution %7B%0A    public int%5B%5D twoSum(int%5B%5D numbers, int target) %7B%0A        int len = numbers.length;%0A        int%5B%5D anArray;%0A        boolean flag = false;%0A        Integer pre;%0A        Integer next;%0A%0A        // allocates memory for 2 integers%0A        anArray = new int%5B2%5D;%0A        %0A        Hashtable %3CInteger, Integer%3E nums = new Hashtable %3CInteger, Integer%3E();%0A        %0A        for(int i = 0; i %3C len; i++)%7B%0A            if(nums.get(numbers%5Bi%5D) == null)%7B%0A                nums.put(numbers%5Bi%5D, i);%0A            %7D%0A            else if (2 * numbers%5Bi%5D == target)%7B%0A                flag = true;%0A                anArray%5B0%5D = nums.get(numbers%5Bi%5D) + 1;%0A                anArray%5B1%5D = i + 1;%0A            %7D%0A        %7D%0A        if(!flag)%7B%0A            for(int j = 0; j %3C len; j++)%7B%0A              next = nums.get(target - numbers%5Bj%5D);%0A              if((next != null)&&(j!= next))%7B%0A                  anArray%5B0%5D = j + 1;%0A                  anArray%5B1%5D = next + 1;%0A                  break;%0A              %7D%0A            %7D%0A        %7D%0A        %0A        return anArray;%0A    %7D%0A%7D%0A

Create TwoSum_001.java