List<Long> fileIds = Lists.newArrayList();
fileIds.add(Long.valueOf("1338047107477188609"));
fileIds.add(Long.valueOf("1338047107489771522"));
String fileids = StringUtils.join(fileIds.toArray(), ",");
System.out.println(fileids);//1338047107477188609,1338047107489771522
java数组转字符串用逗号隔开
最新推荐文章于 2024-09-09 10:10:54 发布