how to use exponents in java code example Example 1: java exponent operator Math.pow(number, exponent) Example 2: exponents java math.pow(number, power);