Some more java snippets