Java 8 introduced Arrays.stream()
to convert a (primitive) array to a Stream.
How can this method be used to get a stream for a byte[]
?
It looks like the method only exists for double[]
, int[]
and long[]
, but not for byte[]
.
I guess the reason is that Arrays.stream()
internally utilizes StreamSupport
which does not provide a method for byte[]
...