Package edu.cnm.deepdive
Class Cube
java.lang.Object
edu.cnm.deepdive.Cube
public class Cube extends Object
Defines a single static method,
isPerfectCube(long), which evaluates a specified value
to determine whether it is a perfect cube. Implementation of this method is included in the
practical exam problems of the Deep Dive Coding Java training programs.-
Method Summary
Modifier and Type Method Description static booleanisPerfectCube(long input)Computes and returns abooleanflag indicating whether the providedinputis a perfect cube.
-
Method Details
-
isPerfectCube
public static boolean isPerfectCube(long input)Computes and returns abooleanflag indicating whether the providedinputis a perfect cube.- Parameters:
input- Value to be tested.- Returns:
- Flag indicating whether
inputis a perfect cube or not.
-