Java 6 – Navigable collections

Example:

Output: