Course contentsShow
Java
Lesson 1497 of 2,87033. Streams API: Terminal OperationsPro lesson

Using IntFunction<A[]> to Specify Array Type

Pass a constructor reference or lambda to toArray(String[]::new) for strongly-typed arrays.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.