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