List转换为Array可以这样处理:
ArrayList<String> list=new ArrayList<String>();
String[] strings = new String[list.size()];
list.toArray(strings);
应用中的情况
List<Payment> payments = (List<Payment>) generalService.findByAttributes(Payment.class, new String[] { "paymentNo" }, new Object[] { dd.getCIRCPaymentNo() });
和ProposalInfoDTO[] proposalInfoResDtos =effectPolicyServerOnline.updateInsuranceApplication(proposalList.toArray(new ProposalInfoDTO[proposalList.size()]));
反过来,如果要将数组转成List怎么办呢?如下:
String[] s = {"a","b","c"};
List list = java.util.Arrays.asList(s);
摘自http://www.2cto.com/kf/201204/125820.html