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