Including for each loop example

Did not know how to properly include my name as a contributor, but thought the Java examples were missing the for-each loop.