Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Iterator<Particle> iterator = particles.iterator();
- while(iterator.hasNext()) {
- Particle p = iterator.next();
- Iterator<Particle>downIterator = particles.iterator();
- while(downIterator.hasNext()) {
- Particle c = downIterator.next();
- if(!c.equals(p)) {
- if(p.locationX.equals(c.locationX)&&
- p.locationY.equals(c.locationY)&&
- p.locationZ.equals(c.locationZ)
- ) {
- downIterator.remove();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement