[Solved] Parenthesis, Comma Operator and Ternary operator combination equivalent in java
This: w = (m<3?y–,m+=13:m++,d+153*m/5+15*y+y/4+19*c+c/4+5); Works out to be the same as this: if (m<3) { y–; m+=13; } else { m++; } w = (d + (153*m/5) +(15*y) + (y/4) + (19*c) + (c/4) + 5); Now for the explanation. There is an instance of the ternary operator here. The second clause is an expression … Read more