-
Notifications
You must be signed in to change notification settings - Fork 15
concat
Mahmoud Ben Hassine edited this page Oct 9, 2015
·
5 revisions
Create a XStream by concatenating two streams.
Stream<String> stream1 = Stream.of("a", "b");
Stream<String> stream2 = Stream.of("c", "d");
XStream.concat(stream1, stream2)
.to(stdOut()); //prints "a", "b", "c", "d"
UnixStream is created with passion by Mahmoud Ben Hassine