Top Posters
Since Sunday
5
k
4
c
4
M
3
t
3
i
3
B
3
k
3
m
3
c
3
o
3
l
3
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 52 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
I appreciate what you did here, answered it right Smiling Face with Open Mouth
wrote...

Yesterday
Thank you, thank you, thank you!
dri
wrote...

2 hours ago
Helped a lot
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  925 People Browsing
Related Images
  
 21
  
 4515
  
 2924
Your Opinion
Where do you get your textbooks?
Votes: 422