How can I add all 3 lists of object into one? Give...
# announcements
k
How can I add all 3 lists of object into one? Given the first and the third one can be empty? There ain't something like listA.addAll(listB).addAll(listC) 🤔
d
something like this maybe? https://pl.kotl.in/OWnRyCccA
k
ah great! 😆
n
Err i don't understand the relationship between the question and answer
since the question is 3 lists
and the answer involves a map
but you can just do
listA + listB + listC
👏 1
k
just read a paper, there are 4 ways: plus operator, addAll, java stream 😋