标签:ddd 字符串数组 next index 数组 str ring ext aaa
1、list冬天减数据
List<String> list = new ArrayList<>();
Iterator<String> it = list.iterator();
while(it.hasNext()){
String ss = it.next();
if(ss.indexOf("aa")>-1){
it.remove();
}
}
2、字符串数组赋值给list
String ss = "aaa,bbb,ccc,ddd";
String[] arr = ss.split(",");
List<String> inlist = Arrays.asList(arr);
标签:ddd 字符串数组 next index 数组 str ring ext aaa
原文地址:https://www.cnblogs.com/jassy/p/11825307.html