Added snippets foreach for java.
Changed indentation to space instead of tabs.
But exclude makefile.