Here you can find the source of arrayToList(String[] str)
@SuppressWarnings("unchecked") public static List arrayToList(String[] str)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { @SuppressWarnings("unchecked") public static List arrayToList(String[] str) { List list = Arrays.asList(str); return list; }/*from ww w .j a v a 2 s.c om*/ }