Top Posters
Since Sunday
k
3
r
3
j
3
V
3
l
3
J
2
1
2
n
2
O
2
h
2
d
2
s
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 55 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
Just got PERFECT on my quiz
wrote...

Yesterday
Correct Slight Smile TY
wrote...

2 hours ago
This site is awesome
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1000 People Browsing
 109 Signed Up Today
Related Images
  
 213
  
 391
  
 1556
Your Opinion
Which is the best fuel for late night cramming?
Votes: 146