ArrayList<String> result =
new
ArrayList<String>();
for
(String s: sources){
if
(Collections.frequency(reslut, s) <
1
) result.add(s);
}
ArrayList<String> result =
new
ArrayList<String>();
for
(String s: sources){
if
(Collections.frequency(reslut, s) <
1
) result.add(s);
}
转载于:https://www.cnblogs.com/minghualiyan/p/5227704.html