三方配置增加字段
This commit is contained in:
@@ -94,7 +94,9 @@ public class ListUtil {
|
||||
// method1 创建一个Integer类型的集合,循环遍历String类型的数组并把数据添加进集合
|
||||
List<Integer> integerList = new ArrayList<>();
|
||||
for (String s : listString) {
|
||||
integerList.add(Integer.parseInt(s));
|
||||
if (!StringUtils.isEmpty(s)) {
|
||||
integerList.add(Integer.parseInt(s));
|
||||
}
|
||||
}
|
||||
return integerList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user