Only problem is, I am having trouble trying to use it. I have posted my program below, but it is not finished yet. If I could just get a simple code on an array using the Math.pow class, with a simple explanation, I would greatly appreciate it!

public class CubeTest { public static void main(String[] args) { //Our array for our cube double[] cubeNumbers = {3.0, 4.0, 5.0}; volumeOfCube1(cubeNumbers); } private static void volumeOfCube1(double[] methodCubeNumbers) { System.out.println("Test to find out what array currently is before Math.pow: "); double cubeCalculation = 0; //Testing to make sure array variables are showing up for (double test: methodCubeNumbers) System.out.println(test); System.out.println("Test to see the results of the Math.pow class on array") //Trying to get each variable in the array to be raised to the 3rd power for (int count = 0; count < methodCubeNumbers.length; count++) methodCubeNumbers[count].(double)pow(3); } }