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 boolean
isPerfectCube(long input)
Computes and returns aboolean
flag indicating whether the providedinput
is a perfect cube.
-
Method Details
-
isPerfectCube
public static boolean isPerfectCube(long input)Computes and returns aboolean
flag indicating whether the providedinput
is a perfect cube.- Parameters:
input
- Value to be tested.- Returns:
- Flag indicating whether
input
is a perfect cube or not.
-