I need to combine two string sets while filtering out redundant information, this is the solution I came up with, is there a better way that anyone can suggest? Perhaps som
If you are using the Apache Common, use SetUtils class from org.apache.commons.collections4.SetUtils;
SetUtils
org.apache.commons.collections4.SetUtils;
SetUtils.union(setA, setB);