Does anyone know how to merge with Java 8 with two cards of this type?
Map<String, List<String>> map1--->["a",{1,2,3}]
Map<String, List<String>> map2--->["a",{4,5,6}]
And get as a result of the merger
Map<String, List<String>> map3--->["a",{1,2,3,4,5,6}]
I am looking for an unnecessary way if it exists. I know how to do it the old way.
Sincerely.
source
share