Input
Output
>> javac Main.java
>> java Main
Enter base and exponent : 
Result 2 ^ 5 : 32
Using Math class : 32.0