how to add an exponent in java code example Example: java exponent operator Math.pow(number, exponent)