Java 6 – Navigable collections

Example:

Output:

 

Leave a Reply

Your email address will not be published.