Stream.toArray: The `toArray` method in the Stream API collects elements from a stream into an array. It is useful when you need to convert a stream into an array for further processing or when interacting with APIs that require arrays.

https://en.wikipedia.org/wiki/Java_version_history#JDK_8