I attempted to create the following project. This is what i didin order to see if i provide enough information for assistance.
open netbeans
created new java application project 1
created new java class PowerMain
this is the code written:
public class PowerMain {
public static double power1(double x, int n) {
double pow = 1;
for (int i = 0; i < n; i++) {
pow = pow * x;
}
return pow;
}
public static double power2(double x, int n) {
if (n == 0) {
return n;
}
if ((n & 1) == 1) {
return x * power2(x, n / 2) * power2(x, n / 2);
}
return power2(x, n / 2) * power2(x, n /
PayPal Gateway not configured
PayPal Gateway not configured