Creator Help

Add all

List Manipulations - Add all

The Addall list syntax appends all of the elements in the specified source list to the end of the target list, in the order, the elements are present in the source list.

Syntax

<list1>.addAll(<list2>);

where,

<list1> - target list name
<list2> - the list from where the elements will be added to the above list.

Example

In the following code, the elements in the list named sports_list_old will be appended to the list named sports_list.

sports_list.addAll(sports_list_old);

Top