DEV Community

Discussion on: How to convert a Java List to int []

Collapse
 
moaxcp profile image
John Mercier

Nice! I think identity() returns an Integer in this case and mapToInt expects an int. There is no unboxing going on here. Sorry for the confusion.