### Question:
SingleNumber { public int singleNumber(int[] nums) { Arrays.sort(nums); for (int i = 0; i < nums.length - 1; i += 2) { if (nums[i + 1] != nums[i]) { return nums[i]; } } return nums[nums.length - 1]; }  int singleNumber(int[] nums); int singleNumber2(int[] nums); int singleNumber3(int[] nums);  }### Answer:
@Test void go() { SingleNumber singleNumber = new SingleNumber(); for (int i = 0; i < cases.size(); i++) { assertEquals((int)results.get(i), singleNumber.singleNumber(cases.get(i))); } }