@@ -0,0 +1,438 @@
+import java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic class SingleNumber %7B%0A  public static void main(String%5B%5D args) %7B%0A    System.out.println(new SingleNumber().singleNumber(new int%5B%5D %7B1,1,2,2,3%7D));%0A    System.out.println(new SingleNumber().singleNumber(new int%5B%5D %7B1%7D));%0A  %7D%0A%0A  public int singleNumber(int%5B%5D nums) %7B%0A    int result = 0;%0A%0A    for (int i = 0; i %3C nums.length; i++) %7B%0A      result %5E= nums%5Bi%5D;%0A    %7D%0A%0A    return result;%0A  %7D%0A%7D

Add single number