Training exercises taken from the Java Tutorial Website (http://docs.oracle.com/javase/tutorial/index.html)