a collection of java snippets