For an overview an explanation visit: http://javasnippets.tk