Stream.flatMapToDouble: The `flatMapToDouble` method in the Stream API maps each element of a stream into a DoubleStream and flattens the resulting streams into one. This is useful when processing double-precision floating-point numbers in nested data structures.