一. 题目二. 思路三. 代码class Solution { public int singleNumber(int[] nums) { int ans = 0; for (Integer v : nums) ans ^= v; return ans; } }