Is there an elegant way to skip the first iteration in a Java5 foreach loop ?
Example pseudo-code:
for ( Car car : cars ) { //skip if first, do w
SeanA's code has a tiny error: the second argument to sublist is treated as an exclusive index, so we can just write
for (Car car : cars.subList(1, cars.size()) { ... }
(I don't seem to be able to comment on answers, hence the new answer. Do I need a certain reputation to do that?)