Advertisement
Guest User

Untitled

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