将对象列表转换为对象数组列表
/* from n o w j a v a . c o m*/ import java.util.ArrayList; import java.util.List; public class Main{ public static void main(String[] argv){ List objList = java.util.Arrays.asList("asdf","nowjava.com"); String fieldNames = "nowjava.com"; System.out.println(java.util.Arrays.toString(objListToObjArrayList(objList,fieldNames))); } public static <T> List<Object[]> objListToObjArrayList(List<T> objList, String... fieldNames) { List<Object[]> objArrayList = new ArrayList<Object[]>(); for (T obj : objList) { objArrayList.add(ObjectUtil.obj