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 Details

    • isPerfectCube

      public static boolean isPerfectCube​(long input)
      Computes and returns a boolean flag indicating whether the provided input is a perfect cube.
      Parameters:
      input - Value to be tested.
      Returns:
      Flag indicating whether input is a perfect cube or not.