Using Eclipse's auto-complete feature you can get the syntax for common code blocks like the for-each loop.