Examples of some of the new features of java 7