Sample Java applications and code snippets