Java 8, stream.map | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java 8, stream.map

Why use stream.map instead of either for or foreach to iterate an array?

11th Feb 2021, 7:07 AM
Johnatan Rafael Santiago Cigala
Johnatan Rafael Santiago Cigala - avatar
1 Answer
+ 2
Same question - https://stackoverflow.com/questions/16635398/java-8-iterable-foreach-vs-foreach-loop Hope this will be helpful for you! All the best!
11th Feb 2021, 7:56 AM
Abhiyantā
Abhiyantā - avatar