Here you can find the source of arrayToList(String[] str)
public static List arrayToList(String[] str)
//package com.java2s; //License from project: Apache License import java.util.Arrays; import java.util.List; public class Main { public static List arrayToList(String[] str) { List list = Arrays.asList(str); return list; }/* www . jav a 2 s . co m*/ }