Question: Java int x, y = 9; x = 10; if ((x-- != 9 || (x--) == 8) && (y++) < x) System.out.println(y); else System.out.println(x); -----

Java

int x, y = 9;

x = 10;

if ((x-- != 9 || (x--) == 8) && (y++) < x)

System.out.println(y);

else

System.out.println(x);

-----

I need help in understanding this code(

x-- ,, is it mean (10-1)

and (y++)

what is order to cheek the for loop

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!