java exponential calculation code example Example: how to calculate exponential in java import java.util.Math; Math.pow(number, power);