Loading...
Logo
Processing Forum
Hi,

I am working in Eclipse using proclipsing.

I have an error on Iterator. Eclipse do not give any solutions. My script works fine on Processing but on Eclipse Iterator does nots work?
Could you help me please?

Copy code
  1. void run(){
  2. Iterator<Particle> it = particles.iterator();
  3. while (it.hasNext()){
  4. Particle p = it.next();
  5. p.display();
  6. if(p.isDead()){
  7. it.remove();
  8. }
  9. }
  10. }

  11. }

Replies(2)

"an error"
Nice description. My psychic senses tell me you should try adding this line...
Copy code
  1. import java.util.*;
Thanks it works:)