java variable to the power of 2 code example Example: raise number to power java Math.pow(number, power);