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
Just use newStringSet.addAll(oldStringSet). No need to check for duplicates as the Set implementation does this already.
newStringSet.addAll(oldStringSet)
Set