snippets and notes from Java study