It seems my code performs all the requirements, but it is failing still. It says I need to use cube to implement the ninthDegree method. And I am doing that, yet it does not pass. And my code is correct it does not show but i did:
public static long ninthDegree(long a) {
long b = cube(a) * cube(a) * cube(a);
return b;
package en.codegym.task.pro.task06.task0609;
/*
A cubed cube calculator
*/
public class Solution {
public static void main(String[] args) {
}
public static long cube(long a) {
return a * a * a;
}
//write your code here
public static long ninthDegree(long a) {
long b = cube(a) * cube(a);
return b;
}
}