/**
* This method gets the numbers which are present in first and not in second.
* @param nums
* @return
*/ private static List<Integer> getMissingNumbers(Integer [] first, Integer [] second) {
List<Integer> missing = new ArrayList<Integer>(new HashSet<Integer>(Arrays.asList(first))); for (Integer num : second) {
missing.remove(num);
} return missing;
}
}