Java SE 8/11 Programmer II Exam Series: Primitive Streams

Introduction In this post, we will cover creating primitive streams, using Optional types with primitives, and summarizing statistics in a single pass. Primitive Streams There are three types of primitive streams: IntStream (int, short, byte, and char), LongStream (long), and DoubleStream (double and float). Creating Primitive Streams Creating primitive streams is the same as a […]