Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. while(!turtles.isEmpty()){
  2.  
  3. for(Iterator<RaceTurtle> it = turtles.Iterator(); it.hasNext();){
  4.  
  5. RaceTurtle turtle = it.next();
  6.  
  7. RaceWindow.delay(10);
  8.  
  9. if(turtle.getX()>=RaceWindow.X_END_POS){
  10. turtles2.add(turtle);
  11. it.remove();
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement