Java 6 – Navigable collections

Example:

Output:

 

Java 7 – Invoke package, method handles, method types

Example:

Output: