Java Program to Calculate Power of a Number

In this tutorial, I am going to explain how to calculate power of a number without using Math.pow method in java.

For example:

i) 23 = 8 (2 * 2 * 2)
ii) 52 = 25 (5 * 5)