Created
December 22, 2015 06:49
-
-
Save hitapia/7dfa2afabd4562d8b19c to your computer and use it in GitHub Desktop.
Delete items in ArrayList - Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private ArrayList<Keyword> items = new ArrayList<Keyword>(); | |
| private void DelItems(ArrayList<String> delid){ | |
| Iterator<Keyword> iter = items.iterator(); | |
| while (iter.hasNext()) { | |
| if (delid.contains(((Keyword)iter.next()).id)) { | |
| iter.remove(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment