Java5 foreach loops instead of older constructs