example5
Directory actions
More options
Directory actions
More options
example5
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Implement a method
public Set<String> union(List<Set<String>> sets)
by creating a stream pipeline that transforms a list of sets (of type String) into the union of those sets. Make use of the reduce method for streams.
Example: The union method should transform the list [{“A”, “B”}, {“D”}, {“1”, “3”, “5”}] to the set
{“A”, “B”, “D”, “1”, “3”, “5”}