Is there a fast (in terms of saving programmers time not the execution time of program) utility method in default java libraries (without any external 3rd util libs) which would enable to create primitive array from a primitive wrapper collection?
Example:
int[] array = magicMethod(Collection<Integer>);
Without manually creating new array instance iterating over the collection myself?
If not for collection, even for List<Integer>
would be nice.