Top Posters
Since Sunday
k
3
r
3
j
3
V
3
l
3
2
J
2
1
2
n
2
O
2
h
2
d
2
New Topic  
parneetgill parneetgill
wrote...
Posts: 468
4 years ago
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);
}
}


▸ n <= 0

▸ n < 0

▸ n > 0

▸ no base cases
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 53 times
1 Reply
Replies
Answer verified by a subject expert
joanametjoanamet
wrote...
Posts: 404
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

parneetgill Author
wrote...

4 years ago
Helped a lot
yen
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
Thanks for your help!!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  962 People Browsing
 109 Signed Up Today
Related Images
  
 213
  
 4256
  
 887
Your Opinion
What's your favorite funny biology word?
Votes: 336