+ 1
Help needed
Hi guys, is it possible to put multiple arrays that has elements already into a list or collection?
2 Answers
+ 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...
+ 1
Thanks alot!