Currently whenever I need to create stream from an array, I do
String[] array = {\"x1\", \"x2\"}; Arrays.asList(array).stream();
Is there s
Stream.of("foo", "bar", "baz")
Or, if you are already have an array, you can also do
Stream.of(array)
For primitive types use IntStream.of or LongStream.of etc.
IntStream.of
LongStream.of