集合和数组的相互转换

1、集合转数组
AllUserOperateLogVO [] array = list.toArray(new AllUserOperateLogVO[list.size()]);
2、数组转集合
String[] headersArray = {"手机号","操作类型","业务平台","渠道","IP","操作结果","操作时间"};
List headers = Arrays.asList(headersArray);

你可能感兴趣的:(java)