1. Write each of the following recursive methods and for eachone, write a main method to test it.
public static int sumCubes(int n):Returns the sum of the sequence:13 + 23 + 33+ …. + n3
public static double betterPower(double x, int n) :This is animproved version of the power method that takes advantage of thefollowing properties: x n = xn/2 * xn/2 for even values of n x n =x * xn/2 * xn/2 for odd values of n
public static int GCD(int n, int m) :Returns the Greatest CommonDivisor (GCD) of two numbers n and m, define as follows:

if
PayPal Gateway not configured
PayPal Gateway not configured