What are the base cases in the following recursive method?
```
public static void xMethod(int n) {
if (n > 0) {
System.out.print(n % 10);
xMethod(n / 10);
}
}
```
a. n > 0
b. n <= 0
c. no base cases
d. n < 0
b. n <= 0
You might also like to view...
Answer the following questions true (T) or false (F)
1. In implementing class template member functions, the functions are themselves templates. 2. In the implementation of a class template function, the class name before the scope resolution operator is just the class name, with no additional syntax.
The ________ Wizard guides you through the query design process in Access
Fill in the blank(s) with correct word
Email acceptable use and Internet acceptable use are considered which of the following?
A. System-specific policies B. Issue-specific policies C. Programme-framework policies D. Programme-level policies
When you create sparklines, clicking any cell in the data range selects all of the sparklines in the group. _________________________
Answer the following statement true (T) or false (F)