Created
July 7, 2016 13:54
-
-
Save evanchooly/7e63d7c2b3798874c3275adea2936aef to your computer and use it in GitHub Desktop.
"how do I cast[sic] ArrayList<Integer> to int[] ? I've found toArray can only convert into Integer[]"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list.stream().mapToInt(i -> i.intValue()).toArray() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment