nature-of-code / The-Nature-of-Code-archive

The very first build system for The Nature of Code
http://natureofcode.com
914 stars 151 forks source link

Error in code example in 4.3 #295

Closed grust closed 10 years ago

grust commented 11 years ago
ArrayList<Particle> plist = new ArrayList<Particle>();

for (Particle p: particles) {
  p.run();
}

I think first string must be

ArrayList<Particle> particles = new ArrayList<Particle>();

for (Particle p: particles) {
  p.run();
}
shiffman commented 10 years ago

No more plists anywhere! all "particles"