Currently whenever I need to create stream from an array, I do
String[] array = {\"x1\", \"x2\"}; Arrays.asList(array).stream();
Is there s
rarely seen, but this is the directest way
Stream.Builder builder = Stream.builder(); for( int i = 0; i < array.length; i++ ) builder.add( array[i] ); Stream stream = builder.build();