java stream array code example
Example: create stream from array java
// creating stream from array
int[] arr = {1, 2, 3, 4};
Arrays.stream(arr);
Stream.of(arr); // same as above
// creating stream from array
int[] arr = {1, 2, 3, 4};
Arrays.stream(arr);
Stream.of(arr); // same as above