Remove multiple items from ArrayList
I want to remove multiple items from arraylist.
this is the list:
String1-1, String5, String6, String1-2, String5, String6, String1-3,
String5, String6
I want to remove String1- from the list. But because not all the String1-
have the same end, they are not removed. So list.remove("String1-") is not
working.
The question is: How to remove the multiple items from arraylist when the
end of the string i want to remove is not the same.
No comments:
Post a Comment