What does the following method do?
public static long method(long a, long b) {
if (b == 0) {
return b;
}
return a + method(a, b - 1);
}What does the following method do?
public static long method(long a, long b) {
if (b == 0) {
return b;
}
return a + method(a, b - 1);
}Create a free account to access the full topic