Question: cosider the following method: public static void ifElseMystery 1 ( int x , int y ) { int z = 4 ; if ( z

cosider the following method:
public static void ifElseMystery1(int x, int y){
int z =4;
if (z <= x){
z = x +1;
} else {
z = z +9;
}
if (z <= y){
y++;
}
System.out.println(z +""+ y);
}
ifElseMystery[1]=(4,5);
ifElseMystery[2]=(5,5);
ifElseMystery[3]=(6,10);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!