JAVA String转List<String>或List<Integer>
直接上代码
String strcids = request.getParameter("cids");
String[] strs = strcids.split(",");
List<Integer> cids = new ArrayList<>();
for(String str:strs){
int i =Integer.parseInt(str);
cids....
原创
2020-05-03 13:09:27 ·
2846 阅读 ·
0 评论