Here you can find the source of stringsToList(final String[] src)
public static List<String> stringsToList(final String[] src)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static List<String> stringsToList(final String[] src) { if (src == null || src.length == 0) { return null; }// w w w . j a v a2s. c om final List<String> result = new ArrayList<String>(); for (int i = 0; i < src.length; i++) { result.add(src[i]); } return result; } }