Java List Value Add addElements(List list, T[] array)

Here you can find the source of addElements(List list, T[] array)

Description

add Elements

License

Open Source License

Declaration

public static <T> boolean addElements(List<T> list, T[] array) 

Method Source Code

//package com.java2s;

import java.util.List;

public class Main {
    public static <T> boolean addElements(List<T> list, T[] array) {
        boolean good = true;
        for (T obj : array) {
            good &= list.add(obj);// w  w  w.j  av a  2s  .  co m
        }
        return good;
    }
}

Related

  1. add(Map> multiValueMap, String key, Object value)
  2. add(Object o, List oldList)
  3. addElement(T element, List list)
  4. addElementIfAbsent(List l, T element)
  5. addElements(boolean removeDuplicates, final List result, Collection elements)
  6. addElementsIfAbsent(List destList, Collection aColl)
  7. appendToList(List list, A elem)
  8. appendToList(List list, T[] elements)