jdk 1.5 foreach loop