Some Java Code Samples and Snippets