+ 1

Help needed

Hi guys, is it possible to put multiple arrays that has elements already into a list or collection?

16th Jul 2022, 4:16 PM
Andrew Yap Yuntze
Andrew Yap Yuntze - avatar
2 Respuestas
+ 1
Yes. you can use a loop to add to list iteratively.. also There are methods like List list = Arrays.asList(arr); returns List into list Collection.addAll(list, array); // array elements added to list. also stream helps advancedly...
16th Jul 2022, 4:24 PM
Jayakrishna 🇮🇳
+ 1
Thanks alot!
16th Jul 2022, 5:24 PM
Andrew Yap Yuntze
Andrew Yap Yuntze - avatar