CodeRatings
/
Create Snippet
Login
0
How do I convert a Java 8 IntStream to a List?
Jeri
2019-10-29
#intstream
#list
#convert
#java8
#java
Fork
Save
Download
Java
List<Integer> intList = myIntStream.mapToObj(i -> i) .collect(Collectors.toList());
Clear console on reload
Comment is empty.
Cancel
Save
add comment
Suggest a different solution or add another example
Compiled code
×
External library
×
Add
Please provide a valid URL.
Log in to CodeRatings
Email
Password
Forgot password?
Log in
Remember me
Don't have a CodeRatings account yet?
Create your account now
Or
Log in with Twitter
Log in with Facebook
Log in with Github
Log in with Google