package com.hiwhitley.easy.day16;

/**
 * Created by hiwhitley on 2016/9/10.
 */
public class SingleNumber {
    public static int singleNumber(int[] nums) {
        int result = 0;
        for(int i : nums) {
            result ^= i;
        }
        return result;
    }

    public static void main(String[] args) {
        System.out.println(singleNumber(new int[]{1}));
    }
}
