Assorted Java examples from devguerrilla.com