@@ -0,0 +1,878 @@
+package com.ggcoke.oj.leetcode;%0A%0Aimport java.util.Hashtable;%0Aimport java.util.Iterator;%0A%0A/**%0A * @author Wang Huisong %3Cggcoke@foxmail.com%3E%0A */%0Apublic class SingleNumber %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        SingleNumber sn = new SingleNumber();%0A%0A        int%5B%5D nums = %7B0, 0, 1, 1, 2, 2, 3, 3, 5, 4, 5%7D;%0A%0A        System.out.println(sn.singleNumber(nums));%0A    %7D%0A%0A    public int singleNumber(int%5B%5D nums) %7B%0A        Hashtable%3CInteger, Integer%3E table = new Hashtable%3CInteger, Integer%3E();%0A        for (int num : nums) %7B%0A            if (table.containsKey(num)) %7B%0A                table.remove(num);%0A            %7D else %7B%0A                table.put(num, num);%0A            %7D%0A        %7D%0A%0A        int result = 0;%0A        Iterator it = table.keySet().iterator();%0A        while (it.hasNext()) %7B%0A            result = (Integer) it.next();%0A        %7D%0A%0A        return result;%0A    %7D%0A%7D%0A

Add solution of 'Single Number'