Inserting filenames was not working for java snippets. Fixed by
supplying the "$1" argument instead of an empty String.
Added a trailing space to java snippets that will be followed by
a space.
Added declarations for common collections: d.al = declare array list; d.hm = declare hash map; d.hs = declare hash set; d.st = declare stack
Merge pull request #383 from 0hansen/master

Java: fixed some issues and added declarations for collections