Title: Look at the following method.public static int test2(int x, int y){ if ( x < y) { return -5; ... Post by: Eels 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(18,5)? A) 1 B) -5 C) 6 D) 7 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: Eels on Jan 31, 2017 This helped so much
|