Check out example codes for "java function for power". It will help you in understanding the concepts better.

Code Example 1

public static double pow(double a, double b)
a : this parameter is the base
b : this parameter is the exponent.
Return :
This method returns ab.

Learn ReactJs, React Native from