Skip to content

Instantly share code, notes, and snippets.

@tcr
Created September 30, 2013 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcr/6766243 to your computer and use it in GitHub Desktop.
Save tcr/6766243 to your computer and use it in GitHub Desktop.
for(Iterator<String> it = my2Do; it.hasNext();) {
String elem = it.next();
if (elem.equals(work2)) {
it.remove();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment