toArray


Description:

public T[] toArray ()

Collects the stream elements into an array.

Returns:

a new array with all stream elements.