Title: Look at the following method.public static int test2(int x, int y){ if ( x < y) { return -5; ... Post by: Oughto on Dec 17, 2016 Look at the following method.
public static int test2(int x, int y) { if ( x < y) { return -5; } else { return (test2(x - y, y + 5) + 6); } } What is returned for test2(10, 20)? A) -5 B) 6 C) 10 D) 1 Title: Re: Look at the following method.public static int test2(int x, int y){ if ( x < y) { return ... Post by: blithering on Dec 17, 2016 Content hidden
Title: Re: Look at the following method.public static int test2(int x, int y){ if ( x < y) { return -5; ... Post by: Oughto on Jan 31, 2017 I literally took this as a gen ed course, I was lost thought it would be easy
thx for making it easier on me |