Here you can find the source of cube(double d)
public static double cube(double d)
//package com.java2s; public class Main { public static double cube(double d) { return d * d * d; }/* w w w. ja va 2 s . com*/ }