using mth power with long java code example Example: raise number to power java Math.pow(number, power);