Stream.flatMapToInt: The `flatMapToInt` method in the Stream API maps each element of a stream into an IntStream and flattens the result into a single IntStream. This is useful when working with nested structures of integer values and needing to process them as a single stream.