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 54 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
Correct Slight Smile TY
wrote...

Yesterday
This site is awesome
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1050 People Browsing
 109 Signed Up Today
Related Images
  
 4516
  
 1669
  
 870
Your Opinion

Previous poll results: What's your favorite math subject?