Here you can find the source of arrayToArraylist(String[] array)
public static final ArrayList<String> arrayToArraylist(String[] array)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static final ArrayList<String> arrayToArraylist(String[] array) { return new ArrayList<String>(Arrays.asList(array)); }//from w ww. j av a2 s .co m }