Google Guava is a java library with lot of utilities and reusable components.
This requires the library guava-10.0.jar to be in classpath.
The following example shows using Sets.difference() API.
It returns an unmodifiable view of the difference of two sets.
//Returns a set containing all elements that are contained by set1 and
//not contained by set2
Set<String> resultSet = Sets.difference(stringSet, stringSet2);
System.out.println(resultSet);
}