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

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

Description

add All

License

Apache License

Declaration

public static <T> void addAll(T[] array, List<T> list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.List;

public class Main {
    public static <T> void addAll(T[] array, List<T> list) {
        for (T t : array) {
            list.add(t);//from w  w  w. ja v  a  2s.  c  o  m
        }
    }
}

Related

  1. addAll(List list, String[] array)
  2. addAll(List list, T... array)
  3. addAll(List src, T... args)
  4. addAll(List xs, Collection adds)
  5. addAll(Object[] array, List list)
  6. addAllTo(List procArgs, String[] args)
  7. addAllTo(List list, T... args)
  8. addAllToANewList(Collection... collections)
  9. addAllToList(List dest, Collection src)