Java 8 – Merge Two Lists Using Streams rameshfadatare.com/java-programmi…
6
32
302
23K
123
Download Image
@GuidesJava Why would you ever do that... This is so inefficient ! Just use .addAll() instead. (Provided the list implementation is not immutable, or course. If it is, just wrap it in a new ArrayList)
@GuidesJava Somehow i find looping and appending to be more readable 🤷♂️
@GuidesJava That would be half a line in Python. I am glad I switched to Python.