some java snippets for development code