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 < b) {
a = a * 2;
}
if (a > b) {
a = a - 10;
} else {
b++;
}
System.out.println(a + " " + b);
}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: While Loop Simulation<br>For each call below
Q2: Expressions<br>For each expression in the left-hand
Q3: Assertions<br>For each of the five points
Q4: Parameter Mystery<br>At the bottom of the page,
Q6: Programming<br>Write a static method named containsBothDigits
Q7: Programming<br>Write a static method hopscotch that shows