Skip to content

Instantly share code, notes, and snippets.

@tylerjromeo
Created September 25, 2013 21:05
Show Gist options
  • Select an option

  • Save tylerjromeo/6706044 to your computer and use it in GitHub Desktop.

Select an option

Save tylerjromeo/6706044 to your computer and use it in GitHub Desktop.
Iterator<GraphUser> iter = users.iterator();
List<GraphUser> newList = new ArrayList<GraphUser>();
while(iter.hasNext()) {
GraphUser user = iter.next();
if(user.theThingYouWant()){
newList.add(user);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment