Essay
If/Else Simulation
For each call below to the following method, write the output that is produced, as it would appear on the console:
public static void ifElseMystery(int a, int b) {
if (a % 2 != 0) {
a = a * 2;
}
if (a > 10) {
b++;
} else if (a < 10) {
a--;
b--;
}
System.out.println(a + " " + b);
}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions