Here you can find the source of convertArrayToList(String[] arrayStr)
public static void convertArrayToList(String[] arrayStr)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.List; public class Main { public static void convertArrayToList(String[] arrayStr) { //ArrayList<String> strL = (ArrayList<String>) Arrays.asList(arrayStr); List<String> strL = Arrays.asList(arrayStr); System.out.println("------" + strL.size()); }//from ww w .j a v a 2s . c o m }