This program uses the default class, ISortedSet, to create sorted lists of planets with different properties. The program stores all planets in our solar system, and all heavy or bright planets in our solar system in a number of sorted sets. Each set sorts the planets by its distance from the sun.
Concept
This program is a sample to demonstrate the use of the default classes ISortedSet and how to use the elements' properties as a sorting criterion.
Task
This program uses sorted sets to store planets with different properties.
Permission is granted to copy, use, modify, and merge
this software into your applications and to permit others to do any of
the foregoing. You must include this permission and copyright notice in
all copies and modified versions of this software. THIS SOFTWARE IS PROVIDED
IN ITS 'AS IS' CONDITION. TALIGENT AND IBM DISCLAIM ANY LIABILITY OF ANY
KIND FOR DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.