Here you can find the source of toStringClassList(List> list)
public static final ArrayList<String> toStringClassList(List<?> list)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static final ArrayList<String> toStringClassList(List<?> list) { ArrayList<String> toRet = new ArrayList<String>(); for (Object o : list) toRet.add(o.getClass().getSimpleName()); return toRet; }//from www. ja v a 2 s . c o m }