Disk Usage Sample

Description

This program uses a sorted map and a sorted relation to display sorted lists of the name and size of files contained on a disk. It uses the default classes, ISortedMap and ISotredRelation, to implement the collections. The program uses the sorted map to store the name of the file because all elements in a sorted map are unique and all names on a disk are unique. It uses a sorted relation for the file size because there may be identical file sizes and identical values are permissible in sorted relations.

Concept

This program is a sample to demonstrate the use of the default classes ISortedMap and ISortedRelation.

Task

This program uses a sorted map and a sorted relation to display sorted lists of the name and size of files contained on a disk.