Consider the following method: public static void ifElseMystery2 (int a, int b) { if (a * 2

Question:

Consider the following method:

public static void ifElseMystery2 (int a, int b) { if (a * 2 < b) { a = a * 3; ) else if (a > b) { b = b + 3; if (b < a) { b++; } else { a--; System.out.println (a +

What output is produced for each of the following calls?

a. IfElseMystery2(10, 2);

b. IfElseMystery2(3, 8);

c. IfElseMystery2(4, 4);

d. IfElseMystery2(10, 30);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: