Here you can find the source of cube(int a)
public static int cube(int a)
//package com.java2s; public class Main { public static double cube(double a) { return a * a * a; }//from w ww .j a v a 2 s . c o m public static float cube(float a) { return a * a * a; } public static int cube(int a) { return a * a * a; } public static long cube(long a) { return a * a * a; } }