find_uncoupled_int/solutions/FindUncoupledIntSolution.java
/*
	 * finds all the unpaired element in an array.
	 * 
	 * @param nums[] array of numbers to search in.
	 * 
	 * @return array of unpaired elements
	 */
finds all the unpaired element in an array.

@param nums[] array of numbers to search in.

@return array of unpaired elements
finds all the unpaired element in an array . @param nums [] array of numbers to search in . @return array of unpaired elements
public static Integer[] findAll(int[] nums) {
		Set<Integer> unpaired = new HashSet<Integer>();
		for (int i : nums)
			if (!unpaired.add(i)) unpaired.remove(i);
		return unpaired.toArray(new Integer[unpaired.size()]);
	}
public static Integer [ ] findAll ( int [ ] nums ) { Set < Integer > unpaired = new HashSet < Integer > ( ) ; for ( int i : nums ) if ( ! unpaired . add ( i ) ) unpaired . remove ( i ) ; return unpaired . toArray ( new Integer [ unpaired . size ( ) ] ) ; }
finds all the unpaired element in an array.
finds all the unpaired element in an array .