Java 8 Stream toArray operation will return an array containing the elements of the Stream. Th Steam can be Integer, String, Char, or any other Java primitive data type. The Stream.toArray() has the following syntax: Object toArray() toArray() Stream