| Package | Description | 
|---|---|
| shapes | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | Cylinder | 
| class  | RectanglePrism | 
| Modifier and Type | Method and Description | 
|---|---|
| int | RectanglePrism. compareTo(ThreeD a)Using getVolume to determine the comparison result as follows:  -1 if (this.getVolume() < a.getVolume()); 0 if (this.getVolume() = a.getVolume()); 1 if (this.getVolume() > a.getVolume()); | 
| int | Cylinder. compareTo(ThreeD a)Using getVolume to determine the comparison result as follows:  -1 if (this.getVolume() < a.getVolume()); 0 if (this.getVolume() = a.getVolume()); 1 if (this.getVolume() > a.getVolume()); |