Skip to content

Instantly share code, notes, and snippets.

@jaydonnell
Created June 8, 2011 16:43
Show Gist options
  • Save jaydonnell/1014794 to your computer and use it in GitHub Desktop.
Save jaydonnell/1014794 to your computer and use it in GitHub Desktop.
try this
for (int i = 0; i < allBoxesFast.size(); i++) {
SimpleSprite sprite = allBoxesFast.get(i);
sprite.render(container, g);
}
// TRY THIS
for(SimpleSprite sprite: allBoxesFast) {
sprite.render(container, g);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment