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