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

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

Description

add To List

License

Apache License

Declaration

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

Method Source Code

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

import java.util.List;

public class Main {
    public static <T> void addToList(List<T> list, T[] array) {

        if (list == null || array == null)
            return;

        for (T t : array)
            list.add(t);/*from   w  w w. ja  v a2 s. c o  m*/
    }
}

Related

  1. addToList(List list, Object obj)
  2. addToList(List list, I item)
  3. AddToList(List tips, String tip)
  4. addToList(List dest, T src)
  5. addToList(List list, T value)
  6. addToList(List list, U... items)