General Java code samples from devguerrilla.com