Updated Java snippets, included snip for common collections objects