Java List Value Add All addArrayToList(List list, String as[])

Here you can find the source of addArrayToList(List list, String as[])

Description

add Array To List

License

Open Source License

Declaration

private static void addArrayToList(List list, String as[]) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    private static void addArrayToList(List list, String as[]) {
        if (as != null) {
            for (int i = 0; i < as.length; i++)
                list.add(as[i]);//from   w w w  . j ava 2 s .co m

        }
    }
}

Related

  1. addAllUnique(List aList, List theObjects)
  2. addAllUnique(List l1, T element)
  3. addAllUniqueId(List aList, List theObjects)
  4. addAllUniqueToList(List objects, List objectsToAdd)
  5. addAllWords(String text, List result)
  6. addArrayToList(List list, double[] array)
  7. addArrayToList(List list, T[] array)
  8. addArrayToList(String[] array, List list)
  9. addArrayToList(T[] array, List list)