import java.util.*;
public class twosum {
static int[] intArray = new int[] {1, 1, 6 ,5 ,6, 8 , 6, 3, 4, 6};
static int target = 1;
int index;
public static void main(String[] args ){
new twosum().twosum();
int x = new twosum().twosum();
System.out.println(x);
}
public static int twosum()
{
Hashtable<Integer, Integer> hashTable = new Hashtable();
int[] storage = new int[intArray.length];
for(int i = 0; i< intArray.length; i++){
if(!hashTable.containsKey(intArray[i])){
hashTable.put(intArray[i], 1);
}
else{
hashTable.put(intArray[i],hashTable.get(intArray[i]) + 1);
}
}
for(int k = 0; k < intArray.length;k++){
int index = hashTable.get(intArray[k]);
if(index % 2 == 0){
System.out.println(intArray[k]); // need to change slightly
}
}
return 0;
}
}