how to use exponent java code example Example 1: exponents java math.pow(number, power); Example 2: java exponential (int) Math.pow(first, second));