@@ -0,0 +1,834 @@
+public class Solution %7B%0A    public List%3CList%3CInteger%3E%3E threeSum(int%5B%5D num) %7B%0A        Set%3CList%3CInteger%3E%3E set = new HashSet%3C%3E ();%0A        Arrays.sort(num);%0A        %0A        for(int i=0; i%3Cnum.length-2; i++) %7B%0A            int j=i+1, k=num.length-1;%0A            while(j %3C k) %7B%0A                int sum = num%5Bi%5D + num%5Bj%5D + num%5Bk%5D;%0A                if (sum == 0) %7B%0A                    List%3CInteger%3E triple = new ArrayList%3C%3E ();%0A                    triple.add(num%5Bi%5D);%0A                    triple.add(num%5Bj%5D);%0A                    triple.add(num%5Bk%5D);%0A                    set.add(triple);%0A                    j++;%0A                    k--;%0A                %7D else if (sum %3C 0) %7B%0A                    j++;%0A                %7D else %7B%0A                    k--;%0A                %7D%0A            %7D%0A        %7D%0A        %0A        return new ArrayList(set);%0A    %7D%0A%7D%0A

Create 3Sum.java