Here you can find the source of toStringList(List
public static <T> List<String> toStringList(List<T> as)
//package com.java2s; //License from project: GNU General Public License import java.util.ArrayList; import java.util.Collection; import java.util.List; public class Main { public static <T> List<String> toStringList(List<T> as) { List<String> strings = makeList(); for (T a : as) { strings.add(a.toString());// www.j a v a 2s. c o m } return strings; } public static <T> List<T> makeList() { return new ArrayList<T>(); } public static <T> List<T> makeList(Collection<T> as) { return new ArrayList<T>(as); } }