Added java foreach snippet.