This tutorial explains, using code examples, the various ways to create Streams.
The full playlist is here: • Playlist
0:00 Arrays.stream()
0:24 stream()
1:22 Stream.of()
2:00 Files.lines()
5:00 Stream.generate()
5:46 Stream.iterate()