In this program we use Javas Mathpow function to calculate the power of the given base. 96 is easier to write and read than 9 9 9 9 9 9. 2 3 1 2 3.
Because pow is a static method of Math you always use it as Mathpow rather than as a method of a Math object you created Math has no constructor.
Public static double Powdouble base double power Parameters. But as the numbers go higher and the exponential power increases finding the right answer starts becoming more and more difficult. 2 6 2 to the power of 6 64 10 1. 5³ 5 x 5 x 5 125.