I would like to combine every two strings in the list and return the list of combination using java8 streams:
List<String> list;
Stream.concat(list.stream(), list.stream())
.collect(toList());
However this code doesn't produce combinations but just elements of the lists. What am I doing wrong. I would also like this code to be parallelized so it can run on multiple cores