Here you can find the source of addArrayToList(List list, String as[])
private static void addArrayToList(List list, String as[])
//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 } } }