ArrayList类的addAll()方法 (ArrayList Class addAll() method)
Syntax:
句法:
public boolean addAll(Collection cl);
public boolean addAll(int indices, Collection cl);
addAll() method is available in java.util package.
addAll()方法在java.util包中可用。
addAll(Collection cl) method is used to add all the elements of the given collection to the last of this Arraylist in the same sequence as they are retrieved by the given object Iterator.
addAll(Collection cl)方法用于将给定集合的所有元素添加到此Arraylist的最后一个元素,其顺序与给定对象Iterator检索它们的顺序相同。
addAll(int indices, Collection cl) method is used to add all the elements of the given collection into this Arraylist and i