Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
for readability and maintainability, it would be bette to split the code,
store the result of the first collect in a local variable with a meaningful name.
then on a separate line stream the results and do the needed operations
quiet late,
but in case you still need the answer:
you need to have the import statement below:
import java.util.Arrays;
you might want to have skip and map on a separate line,
this way it will be easier to read.