Use enhanced for loops

for #9

Note that 80% of conversions were done with the help of Eclipse automatically.
About 10%, I had to coax Eclipse by specifying the type parameters.
The remaining 10%, I had to type manually.