@@ -0,0 +1,617 @@
+package LeetCode.Java;%0A%0Aimport java.util.HashMap;%0Aimport java.util.HashSet;%0Aimport java.util.Set;%0A%0A/**%0A * Created by tank on 17/3/25.%0A */%0Apublic class SingleNumber %7B%0A    public int singleNumber(int%5B%5D nums) %7B%0A        HashMap%3CInteger, Integer%3E map = new HashMap%3CInteger, Integer%3E();%0A        for (int i = 0; i %3C nums.length; i++)%7B%0A            if (!map.containsKey(nums%5Bi%5D))%0A                map.put(nums%5Bi%5D, 1);%0A            else%0A                map.replace(nums%5Bi%5D, 2);%0A        %7D%0A        for (Integer key: map.keySet())%7B%0A            if (map.get(key) == 1)%0A                return key;%0A        %7D%0A        return 0;%0A    %7D%0A%7D%0A%0A

136.Single Number