In this video, creating primitive streams (as opposed to typed streams) are introduced. Initially, sample code demonstrates how to create primitive streams using the overloaded Arrays.stream() method. Following that, how to create primitive streams using the static "of" method is shown. Finally, the useful sum() method is explained by contrasting it to the reduce() method.
The full Streams playlist is here: • Playlist
0:00 Introduction
1:05 Creating primitive streams in code
2:11 reduce() versus sum()